matlab guide tool
Show older comments
matlab gui exit button code..
Accepted Answer
More Answers (3)
Jan
on 25 Mar 2011
Let me guess what you want - although wild mass guessing is an inefficient counterproductive anti-pattern (see Wiki: AntiPattern)
uicontrol('Style', 'pushbutton', ...
'String', 'Exit', ...
'Position', [10, 10, 120, 22], ...
'Callback', @myExit, ...
'FontName', 'Helvetica');
function myExit(ObjH, EventData)
FigH = ancestor(ObjH, 'figure');
set(FigH, 'DeleteFcn', '', ...
'CloseRequestFcn', '');
delete(FigH);
Matt Fig
on 25 Mar 2011
0 votes
Is there a question in there somewhere?
Seth DeLand
on 25 Mar 2011
0 votes
Maybe this is what you're looking for?
Categories
Find more on MATLAB in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!