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!