matlab guide tool

1 visualización (últimos 30 días)
bala k
bala k el 25 de Mzo. de 2011
matlab gui exit button code..

Respuesta aceptada

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

Iniciar sesión para comentar.

Más respuestas (3)

Jan
Jan el 25 de Mzo. de 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 el 25 de Mzo. de 2011
Is there a question in there somewhere?

Seth DeLand
Seth DeLand el 25 de Mzo. de 2011

Categorías

Más información sobre Logical en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by