Dealing with matrix multiplication

If your program had gotten past the minimize statement it would have encountered the same error on the constraint.

Fortunately, the constraint can be reformulated as
norm(X,'fro') <= sqrt(P_t)

Please show us your proof that the objective function is convex, which is not obvious to me. In doing so, follow the guidance in