Promblem with the function vec
Apparently there is a different an incompatible version of vec also on your system than the vec which is included with CVX.
What is the output of
which -all vec
If so, that might be resolved by moving the CVX directories to before the other vec in your MATLAB path.

