When run ‘‘cvx_setup’’,it shows ‘‘UNEXPECTED ERROR: The function’ vec’ corresponding to the input parameter of type’ double’ is not defined’’
Remove all CVX diredtories from the MATLAB path.
Download a new copy of CVX 2.2.
Start a new MATLAB session. perhaps even better, reboot your computer.
cvx_setup. if you still encounter this error, submit a bug report per http://cvxr.com/cvx/doc/support.html#bug-reports