How to define variable quantity symmetric vairiable matrix?

OK.I will try it.Thanks.

I need to reconfirm.What your mean is that I should conform the rule of CVX_QUAD?If I want to stop use CVX_QUAD,how to uninstall it?

Remove CVXQUAD from your MATLAB path and make sure the original exponential.m rather than CVXQIAD’s version is in your CVX installation.

What you are referring to as the “rules” of CVXQUAD are actually my reformulation guidelines (in the previously provided link I wrote) so that CVXQUAD’s Pade approcimation will be invoked instead of CVX’s Successive Approximation method, which is unreliable and I don’t trust.

My problem can be solved by CVX2.1,but can’t in CVX3.0. I want to know the result of CVX2.1 is right or not? And could I use MOSEK in CVX2.1?

Do not use CVX 3.0 beta - it has many bugs. Mosek can be used in CVX 2.1. However, when CVX’'s Successive Approximation method is used, there is an element of doubt in my mind as to the trustworthiness of the result - that’s part of the reason why I recommend using CVXQUAD.