필터 지우기
필터 지우기

Reopen figure after closing it

조회 수: 115 (최근 30일)
Abilash Subbaraman
Abilash Subbaraman 2016년 10월 19일
답변: heinet 2020년 1월 28일
I was running a long simulation and the result a plot and a figure was created. I accidentally closed the figure. Is there anyway to make the figure reappear?

채택된 답변

Image Analyst
Image Analyst 2016년 10월 19일
Yes. Run the long simulation again.
  댓글 수: 2
heinet
heinet 2018년 4월 30일
An accurate yet harsh answer.
Rik
Rik 2019년 6월 27일
Maybe you could do something forensic to read the previous state of the RAM, which might be used to restore the figure and its contents.
But usually re-running the simulation will be a much better solution. (and include a save call to store the inputs and the results in your code)

댓글을 달려면 로그인하십시오.

추가 답변 (4개)

Gottfried Langhans
Gottfried Langhans 2018년 8월 20일
As all your data you are plotting is still in the workspace you can just copy the lines which are creating your plot out of the script into the command window and press enter. It should take the Data from your workspace and plot it again very fast, as the solution of your simulation is not the figure itself but saved as vectors (or whatever youre plotting) in the workspace. Hope this still helps, worked for me ;)
  댓글 수: 1
Adam
Adam 2018년 8월 20일
Depends if it was run in a script or a function!

댓글을 달려면 로그인하십시오.


Maha
Maha 2020년 1월 28일
It would be a great tool, like the unplot function when you do a mistake, the reopenlastfigure would be great

heinet
heinet 2020년 1월 28일
I have come to a working solution for myself. I save the whole environment as a ".mat"---either at console or in my script where neaded. Then, make your plotting scripts either separate cells (sections) you can execute again with ctrl+enter, or make them separate functions or scripts you can run against your saved environment variables. This at least saves you from having to run run a long simulation all over.

Sivabalan Selvarajan
Sivabalan Selvarajan 2019년 8월 15일
You can copy the complete code into a script window and run it, the plots will be avilable on the right side of your script window after you run it, even after closing the figure window. You could reopen it anytime.
  댓글 수: 1
Walter Roberson
Walter Roberson 2019년 8월 15일
I suspect this only applies for Live Script.

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Graphics Performance에 대해 자세히 알아보기

제품

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by