How to speed up the while loop?
Mostrar comentarios más antiguos
I have this while loop in the matlab when I try to run the code it is taking forver to run it.

6 comentarios
per isakson
el 12 de Sept. de 2021
Did you intend to write
while t_i < Tmax
rather than
while t < Tmax
Anjani
el 12 de Sept. de 2021
Matt J
el 12 de Sept. de 2021
What does the profiler say?
Anjani
el 12 de Sept. de 2021
per isakson
el 12 de Sept. de 2021
Editada: per isakson
el 12 de Sept. de 2021
You haven't provided information enough for us help. Proposal
- See Profile Your Code to Improve Performance
- Upload a code that shows the problem and that we can run. (Formatted text, not an image)
- "stop the run" and run profile viewer
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!