Why am I getting index must be positive integer or local error?
2 views (last 30 days)
Show older comments
Krish Desai
on 24 Mar 2016
Answered: Image Analyst
on 24 Mar 2016
for ind=0:1920
U=3*ind+linspace(1,3,3);
k= PHI_disp_RBME_ModePlot_N(ind);
r=xlocs_full(ind);
end
i=sqrt(-1);
displ=U*exp(i*(k*r));
disp(displ);
Error is for line 6(k=PHI...)
0 Comments
Accepted Answer
Image Analyst
on 24 Mar 2016
It's all described very well in the FAQ: http://matlab.wikia.com/wiki/FAQ#How_do_I_fix_the_error_.22Subscript_indices_must_either_be_real_positive_integers_or_logicals..22.3F
0 Comments
More Answers (0)
See Also
Categories
Find more on Startup and Shutdown 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!