when putting H1 outside of the cvx, ,it works fine.but when i put it into the cvx, it warns and can’t go on.

```
cvx_begin
variables phi(1,M) %相位向量
for j=1;M
phi(j) <In> rand(1)*2*pi; %每个相位服从0-1随机均匀分布
a(j)=exp(i*phi(j)); %每个变量转换成服从0-2*Pi均匀分布
%a(j)=cos(phi(j))+sin(phi(j))*1i;
end
Phi=diag(a); %反射表面相位矩阵，仅相位变化
H0 = sqrt(beta_h0)*h0.'; %直接链路信道
H1 = (alpha*sqrt(beta_h1)*sqrt(beta_g)*h1*Phi*G).'; %反射链路信道
%ave_SNR_S=1/2*abs(P_max)*(norm(H0+H1,2)^2+norm(H0-H1,2)^2)/varNoise
%原始优化对象为ave_SNR_S
num1=square_pos(norm(H0+H1,2));
num2=square_pos(norm(H0-H1,2));
minimize 1/(num1+num2); %是简化后的优化对象
subject to
norm(H1,2)^2/varNoise>=(1/20)*(norm(H0+H1,2)^2+norm(H0-H1,2)^2);
%规定snr_c大于等于1/10的snr_s
cvx_end
```