Azzera filtri
Azzera filtri

matlab guide tool

4 visualizzazioni (ultimi 30 giorni)
bala k
bala k il 25 Mar 2011
matlab gui exit button code..

Risposta accettata

Jan
Jan il 25 Mar 2011
Ah, well, there is a standard answer for GUI questions: Please inspect the examples in Matt Fig's FEX: GUI-Examples
  1 Commento
Jan
Jan il 26 Mar 2011
@Matt: Thanks. Good work.

Accedi per commentare.

Più risposte (3)

Jan
Jan il 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
Matt Fig il 25 Mar 2011
Is there a question in there somewhere?

Seth DeLand
Seth DeLand il 25 Mar 2011

Categorie

Scopri di più su Migrate GUIDE Apps in Help Center e File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by