cvx_begin

variables g aphPtotal

variable S(theta_len) complex

minimize g;

subject to

Zk = r-B*S;

norm(Zk) <= g;

Sumvector’*S <= aphPtotal;

for i=1:theta_len

S(i,:)>=0;

end

cvx_end

Error using cvxprob/newcnstr (line 192)

Disciplined convex programming error:

Invalid constraint: {complex affine} <= {real affine}

Error in <= (line 21)

b = newcnstr( evalin( ‘caller’, ‘cvx_problem’, ‘[]’ ), x, y, ‘<=’ );

Error in l2_SVD (line 60)

Sumvector’*S <= aphPtotal;