Why is My Code Running So Slowly?
古いコメントを表示
My code is running incredibly slow. I have it setup so that it plots every so often throughout the "For" loop, but the plotting is unusually slow. I cannot spot the problem in my code. At the end you will notice that I have it pausing for a brief period of time so that the plot can be viewed.
Thank You, JS
4 件のコメント
per isakson
2016 年 4 月 25 日
編集済み: per isakson
2016 年 4 月 25 日
Because, the code requires more RAM than you have in your computer. That's my guess.
James
2016 年 4 月 26 日
Clayton Ragsdale
2019 年 5 月 29 日
Once your RAM runs out of memory, it then starts using your hard drive, the data transfer between RAM, and hard drive is very slow; thus it could be possible that your computer requires more RAM. If not the case, check your techniques on saving memory and run time
Walter Roberson
2019 年 5 月 29 日
Whether swapping to SSD or hard disc occurs depends upon the operating system and system configuration. It is, however, typical that some swap to disc can happen, and that is rather slow.
採用された回答
その他の回答 (0 件)
カテゴリ
ヘルプ センター および File Exchange で Graphics Performance についてさらに検索
製品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!