Why a figure window with a certain figure number cannot be opened?
정보
이 질문은 마감되었습니다. 편집하거나 답변을 올리려면 질문을 다시 여십시오.
이전 댓글 표시
Hello.
Opening a figure window by typing ">figure;" in my startup.m leads to the following strange behavior:
Waiting 5-10sec after the start of Matlab and then executing >figure(2); does not produce a new figure window. Typing >figure will open Figure 3, but Figure 2 will now be missing completely from the session.
Interestingly, opening two figure windows in startup.m by executing ">figure; figure;" does open Figures 1 and 2 as expected. However, now Figure 3 is impossible to open!
Similarly, opening one figure in startup.m and then typing >figure as quickly as possible upon the start of the session opens Figure 2 successfully. So it seems that the "missing figure" is the first one which I try opening after some time interval following the opening of the first batch of figures. I.e. opening four figures via startup.m and waiting for 5-10 sec before opening another figure in the session will make Figure 5 inaccessible, not even after any of the open figures is closed.
Any help with recovering the "missing figure" will be appreciated.
Thanks,
Valery.
댓글 수: 0
답변 (1개)
madhan ravi
2020년 7월 3일
0 개 추천
That’s why you should assign a handle to the figure.
댓글 수: 5
Valery Milner
2020년 7월 3일
madhan ravi
2020년 7월 3일
I’m not sure I’m following , what if
figure(h2)
Valery Milner
2020년 7월 3일
Steven Lord
2020년 7월 3일
Can you show us the output of this command?
get(h2)
Valery Milner
2020년 7월 3일
이 질문은 마감되었습니다.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!