How can I resolve the following index issue? Index in position 2 exceeds array bounds. Index must not exceed 4.
9 views (last 30 days)
Show older comments
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 Comments
Answers (0)
See Also
Categories
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!