hi,I confront a problem of error using reshape. And I have no clue about what mistake i made.
cvx_begin quiet
variable Fi(2,M) complex
variable FI(M,M) hermitian
variable relax_scaler_D1(M,M,K) hermitian
variable relax_scaler_D2(M,M,K) hermitian
expressions LMI(M+M+1,M+M+1,K)
k=1:1:K;
u=K:-1:1;
for i=1:length(k)
if k(i)==1||u(i)==1
LMI(M+M+1,M+M+1,K);
LMI(k(i),:,:)=[relax_scaler_D1(:,:,k(i)), FI(k(i),:,:), Fi(k(i),:)';...
FI(k(i),:,:)', relax_scaler_D2(:,:,k(i)) ,Fi(k(i),:)';...
Fi(k(i),:), Fi(k(i),: ) ,1 ];
end
end
cvx_end
here is the error row. It’s dimension all matched. I don’t know where the reshape is functioning.
could anyone please help me out.