Subscript indices must either be real positive integers or logicals.
Show older comments
I am getting this error in my code, went thru different explanations but everything went-above my head.Can anyone me guide in right direction.Thanks in advance.
2 Comments
KAPIL MAMTANI
on 30 Oct 2015
John D'Errico
on 31 Oct 2015
Until I stepped through your code, I did not notice it either, although, in hindsight it is obvious. The important thing is to use that idea, to step through code to see what is happening, and what went wrong.
Accepted Answer
More Answers (1)
Image Analyst
on 31 Oct 2015
0 votes
See the FAQ. I think it explains it pretty well: http://matlab.wikia.com/wiki/FAQ#How_do_I_fix_the_error_.22Subscript_indices_must_either_be_real_positive_integers_or_logicals..22.3F
1 Comment
KAPIL MAMTANI
on 31 Oct 2015
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!