Info
Diese Frage ist geschlossen. Öffnen Sie sie erneut, um sie zu bearbeiten oder zu beantworten.
How does the figure window show a photo and close itself in matlab gui ?
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
What code should I use to self-close?
0 Kommentare
Antworten (1)
Rik
am 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)')
0 Kommentare
Diese Frage ist geschlossen.
Siehe auch
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!