Respuesta aceptada

Star Strider
Star Strider el 18 de Dic. de 2018

1 voto

Try this:
figure
plot(randn(1, 10))
hf = gcf;
pause(5)
close(hf)

4 comentarios

madhan ravi
madhan ravi el 18 de Dic. de 2018
+1 nice and easy
Star Strider
Star Strider el 18 de Dic. de 2018
Thank you!
Guillaume
Guillaume el 18 de Dic. de 2018
As long as pause is on!
Possibly safer:
hf = figure;
plot(randn(1, 10));
t = timer('StartDelay', 5, 'TimerFcn', @(~, ~) close(hf));
start(t);
Star Strider
Star Strider el 18 de Dic. de 2018
Good point!

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Mathematics en Centro de ayuda y File Exchange.

Etiquetas

Preguntada:

el 18 de Dic. de 2018

Comentada:

el 18 de Dic. de 2018

Community Treasure Hunt

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

Start Hunting!

Translated by