Cannot perform the operation: {complex affine} .* {convex}

H=[-1.1480-0.6003i,0.1873-2.1384i,0.8404+0.1240i;
0.1049+0.4900i,-0.0825-0.8396i,-0.8880+1.4367i;
0.7223+0.7394i,-1.9330+1.3546i,0.1001-1.9609i;
2.5855+1.7119i,-0.4390-1.0722i,-0.5445-0.1977i;
0.6669-0.1941i,-1.7947+0.9610i,0.3035-1.2078i];

cvx_begin
variable wt(3,1);
expressions tr(1,5) Wt;
Wt=square_pos(norm(wt,‘fro’));
for j=1:5
tr(1,j)=H(j,: ) * Wt * H(j,:)’;
end

错误使用 .* (line 173)
Disciplined convex programming error:
Cannot perform the operation: {complex affine} .* {convex}

出错 * (line 36)
z = feval( oper, x, y );

出错 a_cvx (line 24)
tr(1,j)=H(j,: ) * Wt * H(j,:)’;

Why is this kind of mistake?It means ‘complex affine’ can not * ‘convex’??? How should that be solved?

Do you see where in the rules it says you ca do that? Even it were real, you’d have a non-convex equality constraint.