Live code doesn't regenerate figures when rerun
32 次查看(过去 30 天)
显示 更早的评论
I'm going through programming in live script, and I'm generating plots. Sometimes I need to go back and change the equation I was plotting, and when I rerun the code, the plot is grayed out and doesn't regenerate when run, regardless if I use Run, Run to End, etc. I have to hit them all a few times, and it will randomly regenerate everything, or maybe just some plots and not others. Even clear, clc, close commands don't seem to fix this issue.
Is there a particular way to tell matlab to regenerate all plots when run? Each one already sits as a dedicated figure, and I'm rerunning all sections...
Un-regenerated plot above a regenerated plot:
0 个评论
回答(1 个)
Sulaymon Eshkabilov
2023-10-17
The simulation speed is very much dependent on MATLAB version. E.g. SEE thread shows that big difference.
With the Live Editor, if you have a bunch of plots to be update in every run (if you hit Run button), you need to be a bit patient. Maybe don't need to run all cells in every update of your code. Therefore executing the code in a cell mode can save significant time.
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Graphics Performance 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!