Cannot perform the operation: {concave} ./ {real affine}

Something about your installation is not correct.

Does it show what function the occurrence of vec is in?

Show the result of
which -all vec

If you have YALMIP installed, make sure CVX is before YALMIP in MATLAB path.

Perhaps you should reinstall CVX.