Error Undefined operator '*' for input arguments of type 'cell'
显示 更早的评论
I am trying to multiply two numbers together and keep getting that error.
fprintf('This program will help convert units of meaure\n');
b=inputdlg('Enter your Speed');
s=menu('What are your units of measure?','Km/hr','MPH','M/S','ft/min');
switch s
case 1
x=0.2777778 * b;
case 2
x=((0.44704)*b);
case 3
x=(b);
case 4
x=((0.0050813)*b);
end
采纳的回答
更多回答(0 个)
类别
在 帮助中心 和 File Exchange 中查找有关 Data Type Conversion 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!