关于matlab,调试的时候出现Error:The expression to the left of the equa

问题描述:

关于matlab,调试的时候出现Error:The expression to the left of the equals sign is not a valid……
please input test score:a=input('please input test score,0 means out:')
while =0
switch =0
case a>100|a=90
disp('the grade is ''A''')
case a>=80
disp('the grade is ''B''')
case a>=70
disp('the grade is ''C''')
case a>=60
disp('the grade is ''D''')
otherwise
disp('the grade is ''E''')
end
a=input('please input test score:')
end
调试的时候出现
Error:The expression to the left of the equals sign is not a valid target for an assignment.
1个回答 分类:英语 2014-11-18

问题解答:

我来补答
%please input test score:% 这句是注释
a=input('please input test score,0 means out:')
while =0
switch =0
case a>100|a=90
disp('the grade is ''A''')
case a>=80
disp('the grade is ''B''')
case a>=70
disp('the grade is ''C''')
case a>=60
disp('the grade is ''D''')
otherwise
disp('the grade is ''E''')
end
a=input('please input test score:')
end
 
 
展开全文阅读
剩余:2000
下一页:细胞的物质输入