How to speed up the while loop?
显示 更早的评论
I have this while loop in the matlab when I try to run the code it is taking forver to run it.

6 个评论
per isakson
2021-9-12
Did you intend to write
while t_i < Tmax
rather than
while t < Tmax
Anjani
2021-9-12
Matt J
2021-9-12
What does the profiler say?
Anjani
2021-9-12
per isakson
2021-9-12
编辑:per isakson
2021-9-12
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
采纳的回答
更多回答(0 个)
类别
在 帮助中心 和 File Exchange 中查找有关 Loops and Conditional Statements 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!