Live code doesn't regenerate figures when rerun
조회 수: 39 (최근 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에서 Calendar에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!