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

OK, got it! thank you very much! This is the first time I know this formula in cvx. After replacing the right part of the inequality with the formula you suggested, cvx no longer reports an error, but matlab will report the following error:

The function’vec’ corresponding to the input parameter of type’double’ is not defined.

After checking other people’s solutions on the Internet, I moved vec.m in MATLAB to the folder where the current running file is located, but another error will be prompted:

The structure content is referenced from a non-structure array object.

I still don’t know how to solve it. Do you have any suggestions? Many thanks!