MATLAB: Am I getting index must be positive integer or local error

errorfaqfunction

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…)
Related Question