If I use the built in menu function, can I then use "switch" and call the "case" by the order it appears on the menu?
    2 ビュー (過去 30 日間)
  
       古いコメントを表示
    
choice = menu('Choose an option!','Set user name', 'Load data file');
switch choice
    case 1 
        % Set user name
        set_user_name();
    case 2
        % Load data file
0 件のコメント
採用された回答
  Image Analyst
      
      
 2016 年 11 月 18 日
        Of course? Why wouldn't you be able to? And it looks like you actually tried it so don't you already know the answer?
2 件のコメント
  Image Analyst
      
      
 2016 年 11 月 18 日
				No quotes. Just do it exactly like you had it. Anyway, it's easy enough to try both ways if you weren't sure.
その他の回答 (0 件)
参考
カテゴリ
				Help Center および File Exchange で Simulink Environment Customization についてさらに検索
			
	Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!

