CVX sum(cvx_status == 'Solved') with error

what dose this mean? and how to avoid this error? Thank you.

I don’t see why sum(cvx_status == 'solved') makes any sense. however, i don’t see why it should produce an error message. CVX populated cvx_status with solved, so CVX’s role is complete, and from then on, any further processing of it is just MATLAB.

well, it makes no sense, just want to know how many ‘solved’ status have done :grinning: