matlab guide tool
Afficher commentaires plus anciens
matlab gui exit button code..
Réponse acceptée
Plus de réponses (3)
Jan
le 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
le 25 Mar 2011
0 votes
Is there a question in there somewhere?
Seth DeLand
le 25 Mar 2011
0 votes
Maybe this is what you're looking for?
Catégories
En savoir plus sur MATLAB dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!