Write a program which has differnt cases
信息
此问题已关闭。 请重新打开它进行编辑或回答。
显示 更早的评论
I'm writing a program that should allow a user to pick from a list of 20 different mathematical cases. Once the case has been selected they are allowed to input 6 different variables. After that the program should use the numbers and the case selected and do the computation. How do I start on this? and are there any examples like this?
0 个评论
回答(1 个)
Walter Roberson
2016-6-22
Hint:
case_names = cellstr( num2str((1:20).', 'case #%d') );
choice = menu('Pick one', case_names{:});
switch choice
case 1: ....
otherwise: ....
end
1 个评论
ROJI
2016-6-22
此问题已关闭。
产品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!