채택된 답변

Jan
Jan 2011년 3월 25일

1 개 추천

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일

1 개 추천

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일

0 개 추천

Is there a question in there somewhere?

카테고리

도움말 센터File Exchange에서 MATLAB에 대해 자세히 알아보기

태그

질문:

2011년 3월 25일

Community Treasure Hunt

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

Start Hunting!

Translated by