In my gui3 , i want to break loop when i close the gui figure window
Ältere Kommentare anzeigen
I created closeRequestFunc with this code;
function figure1_CloseRequestFcn(hObject,eventdata,handles)
clear playsnd
delete(hObejct);
end
My for loop works. But i want to add if statement to break loop when closing figure window
i tried this but not work.
if (handles.figure1_CloseRequestFcn)
break;
end
What do you suggest ???
1 Kommentar
Jan
am 30 Jan. 2019
By the way: this is not twitter. No # before the tags, please.
Akzeptierte Antwort
Weitere Antworten (1)
Adam
am 30 Jan. 2019
isgraphics( handles.figure1 )
will tell you if the figure is still active or has been deleted.
Kategorien
Mehr zu Creating, Deleting, and Querying Graphics Objects finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!