How to plot again Figure when it is closed?

Hi all,
when I simulate a program, I plot 2 figures are Figure(1) and Figure(2).
I closed Figure(1) and run to simulate again. But Figure(1) does not appear. Why?
Please help me to solve them.
Thanks!

댓글 수: 4

David Hill
David Hill 2019년 9월 27일
I don't know if I understand your question, but turning the figure visiablity off and on might solve your problem. The matlab documentation is quite good and you should read about figures.
darova
darova 2019년 9월 27일
didn't know about that option. thanks
Ngo Sy
Ngo Sy 2019년 9월 29일
편집: Ngo Sy 2019년 9월 29일
David Hill. It means that. when I simulate a program. It plots Figure(1), Figure(2). I close (x) Figure(1), minimize (_) Figure(2), and run to simulate this program again. But Figure(1) does not appear, Figure(2) is the same.
BUT, if I choose Figure() to simulate, The value of Figure(1) will appear with Figure(3). I do not understand.
Please help me!
After you x figure 1, check
findall(0,'type', 'figure')
and see if you get back one or two figures

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

답변 (0개)

카테고리

도움말 센터File Exchange에서 Creating, Deleting, and Querying Graphics Objects에 대해 자세히 알아보기

제품

질문:

2019년 9월 27일

댓글:

2019년 9월 29일

Community Treasure Hunt

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

Start Hunting!

Translated by