Filter löschen
Filter löschen

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)
Tugba Ergin
Tugba Ergin am 25 Jan. 2019
Geschlossen: MATLAB Answer Bot am 20 Aug. 2021
What code should I use to self-close?

Antworten (1)

Rik
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)')

Diese Frage ist geschlossen.

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by