Invalid structure specification: (N+1,N+1)/Why couldn't define the variable like V(N+1,N+1)?

  for j=1:KE
        R0(:,:,j) = [GK(:,:,j)'*WK*GK(:,:,j)   
        GK(:,:,j)'*WK*gd_(:,:,j);gd_(:,:,j)'*WK*GK(:,:,j)  0];
 end
    R = sum(R0,3);
R1 = [LK'*WP*LK   LK'*WP_'*LW_;LW_'*WP_*LK   0];
cvx_begin sdp quiet
        variable V (N+1,N+1) hermitian
        maximize(real(trace(R*V)+gd'*WK'*WK*gd));
        subject to
            diag(V) == 1;
            V ==  hermitian_semidefinite(N+1);
            real( trace(R1*V) + LW'*LW  ) <=gammaI;
    cvx_end

错误使用 variable
Invalid structure specification: (N+1,N+1)

出错 Feasible_SDR_solving (第 36 行)
variable V (N+1,N+1) semidefinite

There shouldn’t be a space between V and (N+1,N+1)

1 Like