Effacer les filtres
Effacer les filtres

Info

Cette question est clôturée. Rouvrir pour modifier ou répondre.

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

1 vue (au cours des 30 derniers jours)
Tugba Ergin
Tugba Ergin le 25 Jan 2019
Clôturé : MATLAB Answer Bot le 20 Août 2021
What code should I use to self-close?

Réponses (1)

Rik
Rik le 25 Jan 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)')

Cette question est clôturée.

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by