Why am I getting index must be positive integer or local error?
조회 수: 1 (최근 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에서 Introduction to Installation and Licensing에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!