How can I quit an App designer GUI using a button?
I tried this and it does not work:
function QuitButtonPushed(app, event)
fig = uifigure;
selection = uiconfirm(fig,'Close software?','Quit', 'Icon','warning');
switch selection
case 'Yes'
app.delete;
case 'No'
return
end