Index exceeds array bounds. Error in cvxprob/eliminate when solving SDP problem

Install the latest stable version of Mosek from Mosek - Downloads . Ensure ‘mosekdiag’ is successful.

Then install CVX 2.2.2 from Releases · cvxr/CVX · GitHub

The version of Mosek you installed should be listed as an available solver when CVX is installed.

Then try your program again.