Why am I getting index must be positive integer or local error?
3 次查看(过去 30 天)
显示 更早的评论
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 个评论
采纳的回答
Image Analyst
2016-3-24
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 个评论
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Startup and Shutdown 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!