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?
Show older comments
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
Accepted Answer
More Answers (0)
Categories
Find more on Programming in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!