Filter löschen
Filter löschen

matlab guide tool

5 Ansichten (letzte 30 Tage)
bala k
bala k am 25 Mär. 2011
matlab gui exit button code..

Akzeptierte Antwort

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

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (3)

Jan
Jan am 25 Mär. 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 am 25 Mär. 2011
Is there a question in there somewhere?

Seth DeLand
Seth DeLand am 25 Mär. 2011

Kategorien

Mehr zu Migrate GUIDE Apps finden Sie in Help Center und File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by