Error using ==> sub2ind at 58 Out of range subscript.
Show older comments
Hallo, I am trying to use sub2ind but I am getting :Error using ==> sub2ind at 58 Out of range subscript. My code=
n = size(X ,2);
C = size(Meansi,2);
jj = sub2ind([C n], Y, (1:n)');
C=8 ,n=8
Y is a 8x1 matrix Y= 9 7 5 8 4 8 2 5
X=8X8 matrix of double.
Could any one please help.Thanx
Accepted Answer
More Answers (1)
LuMig
on 24 Mar 2014
0 votes
Categories
Find more on MATLAB 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!