Why am I getting index must be positive integer or local error?
2 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Krish Desai
le 24 Mar 2016
Réponse apportée : Image Analyst
le 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 commentaires
Réponse acceptée
Image Analyst
le 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 commentaires
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur Introduction to Installation and Licensing dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!