| MATLAB Function Reference | ![]() |
Syntax
k=menu('mtitle','opt1','opt2',...,'optn')
Description
k = menu('mtitle',' 會顯示一個標題為字串變數opt1','opt2',...,'optn')
'mtitle'且選項為字串變數'opt1', 'opt2',等等的選單。menu則會回傳你所輸入的值。
Remarks
若要從其它的 ui物件呼叫選單,可將該物件的 Interruptible property 設為'yes'。若想要得到更多的資訊,請參見 MATLAB Graphics Guide。
Examples
k = menu('Choose a color','Red','Green','Blue')顯示
color=['r','g','b'] plot(t,s,color(k))
See Also
| memory | mesh, meshc, meshz | ![]() |