How can I resolve the following index issue? Index in position 2 exceeds array bounds. Index must not exceed 4.
조회 수: 9(최근 30일)
표시 이전 댓글
Hi, could anyone please help in resolving the following error message.
Section of the code below:
V=sqrt(P/4)*eye(4,4);
n=sqrt(Pr/trace(H*V*V'*H'+(1/snr)*eye(4,4)));
F=n*eye(4,4);
V1=V(:,1:Mu);
V2=V(:,Mu+1:2*Mu);
V3=V(:,Mu+1:3*Mu);
V4=V(:,Mu+1:4*Mu);
V5=V(:,Mu+1:5*Mu);
And this is the error message:
Index in position 2 exceeds array bounds. Index must not exceed 4.
Error in Naive_convergence (line 11)
V3=V(:,Mu+1:3*Mu);
I need to resolve the indexing of V3 to V5. V1 and V2 are fine.
댓글 수: 5
답변(0개)
참고 항목
범주
Find more on Matrix Indexing in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!