for loop in case of squre bracket in matlab
Mostrar comentarios más antiguos
I studied a code related to my work in which there used a for loop.as given
for jcyc=3:3:57;
[ddx, cycl_ind(jcyc)]=min(abs(jcyc-time_2));
end
here time_2=1×1800.in square bracket the function of ddx and cycl_ind(jcyc) is not clear to me.I mean on the left side for which purpose the square bracket and inside it ddx, cycl_ind(jcyc) is used.?
2 comentarios
Stephen23
el 22 de Feb. de 2017
@ SAFI ULLAH: you are asking questions that are very basic MATLAB syntax. These topics are covered very well in the introductory tutorials:
Safi ullah
el 24 de Feb. de 2017
Respuesta aceptada
Más respuestas (0)
Categorías
Más información sobre Mathematics and Optimization en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!