採用された回答

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 ExchangeDevelop 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