Info

この質問は閉じられています。 編集または回答するには再度開いてください。

I'm having trouble with a simple menu, can someone help ?

1 回表示 (過去 30 日間)
André Magrinho
André Magrinho 2016 年 1 月 4 日
閉鎖済み: MATLAB Answer Bot 2021 年 8 月 20 日
I saw this post and since i'm a novice i found this to be a simple menu to do http://www.mathworks.com/help/matlab/ref/menu.html and since i'm trying to make a clock that would update according to the region you are in ( or the region that the user had inputed ) ,in my menu i would like to first make the user choose a continent, and according to the continent that was chosen it would open another menu with the regions of that continent. Would it be wise to make it with a if cycle? Can someone help ? Thanks!

回答 (2 件)

Ilham Hardy
Ilham Hardy 2016 年 1 月 4 日
"The menu function is not recommended. Instead, use the dialog function to create multiple choice dialog boxes."

Walter Roberson
Walter Roberson 2016 年 1 月 4 日
I would advise using uicontrol('style', 'list') or uicontrol('style', 'popup') to present the choices to the user. Then get the Value property of the uicontrol to determine which entry number they selected.

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by