Respuesta aceptada

Angelo Yeo
Angelo Yeo el 11 de Oct. de 2023

2 votos

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

1 comentario

Adam Danz
Adam Danz el 11 de Oct. de 2023
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.

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Data Type Identification en Centro de ayuda y File Exchange.

Preguntada:

el 11 de Oct. de 2023

Comentada:

el 11 de Oct. de 2023

Community Treasure Hunt

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

Start Hunting!

Translated by