While loop & time consumption
Mostrar comentarios más antiguos
Hi!
I am using a while loop and I am actually not sure why it takes very long time for matlab to proceed the code without generating an answer. It might be that I have missed something in the code that I'm not sure about.
So my question is: Does the code contain errors that I am not aware of? and if not, what can be done so that it will go faster to proceed the whole process!
would really appreciate some feedback and help.
2 comentarios
Robert Cumming
el 4 de Feb. de 2014
help profile
use this to profile the code, it will show you which lines are taking the most time.
Amit
el 4 de Feb. de 2014
The first question is what does the function speed do. Because speed's output is v which controls the while loop
Respuesta aceptada
Más respuestas (0)
Categorías
Más información sobre Loops and Conditional Statements 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!