Trouble Using Close Function

Writing a program where the close function will not work in a uimenu.
*function startup *
fig = figure;
File = uimenu(fig,'Label','File');
Exitbutton = uimenu(File,'Label','Exit','Callback',@Exit);
*end *
*function Exit(hObj,event)*
fig = get(hObj,'Parent');
close(fig)
*end *

回答 (0 件)

カテゴリ

ヘルプ センター および File ExchangeProgramming についてさらに検索

質問済み:

2013 年 5 月 30 日

Community Treasure Hunt

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

Start Hunting!

Translated by