No CVX model exists in this scope

why i have this error?

Perhaps you have an extra cvx_end.

For instance:

cvx_begin
...
cvx_end
cvx_end

It doesn’t do any harm other than printing out that message.