채택된 답변

Angelo Yeo
Angelo Yeo 2023년 10월 11일

2 개 추천

Use uifigure instead of a generic figure.
fig = uifigure;
ax = uiaxes(fig);

댓글 수: 1

Adam Danz
Adam Danz 2023년 10월 11일
The key is to specify the figure handle as @Angelo Yeo demonstrated above. You can use figure or uifigure but in uifigures the HandleVisibility property is off by default so if you call axes() or uiaxes() without specifying the figure handle, the axes will go into a new figure.

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

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 Develop Apps Programmatically에 대해 자세히 알아보기

질문:

2023년 10월 11일

댓글:

2023년 10월 11일

Community Treasure Hunt

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

Start Hunting!

Translated by