matlab guide tool

2 次查看(过去 30 天)
bala k
bala k 2011-3-25
matlab gui exit button code..

采纳的回答

Jan
Jan 2011-3-25
Ah, well, there is a standard answer for GUI questions: Please inspect the examples in Matt Fig's FEX: GUI-Examples

更多回答(3 个)

Jan
Jan 2011-3-25
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 2011-3-25
Is there a question in there somewhere?

Seth DeLand
Seth DeLand 2011-3-25

类别

Help CenterFile Exchange 中查找有关 Migrate GUIDE Apps 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by