Borrar filtros
Borrar filtros

Info

La pregunta está cerrada. Vuélvala a abrir para editarla o responderla.

How does the figure window show a photo and close itself in matlab gui ?

1 visualización (últimos 30 días)
Tugba Ergin
Tugba Ergin el 25 de En. de 2019
Cerrada: MATLAB Answer Bot el 20 de Ag. de 2021
What code should I use to self-close?

Respuestas (1)

Rik
Rik el 25 de En. de 2019
Use this in a callback:
close(gcbf)
Example:
f=figure(1);clf(1)
uicontrol('parent',f,...
'units','normalized',...
'position',[1/3 1/3 1/3 1/3],...
'String','Close me!',...
'Callback','close(gcbf)')

La pregunta está cerrada.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by