cvx_begin sdp
variable P(4,4) symmetric
variable R(3,2)
variable H(1,2)
p11=P(1:3,1:3);p12=P(1:3,4);p22=P(6);
y1=p11*R+p12*H;
y2=p12'*R+p22*H;
cvx_end
R and H are known matrices with appropriate dimension. but I have following error:
Error using * (line 126)
Disciplined convex programming error:
Only scalar quadratic forms can be
specified in CVX
.
Error in cvX (line 23)
y1=p11*R+p12*H;
So what’s worng?