Take a look at SDP in CVX 3.0 fails due to Subscript indices must either be real positive integers or logicals and I got the following CVX message .