作业帮 > 英语 > 作业

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

来源:学生作业帮 编辑:灵鹊做题网作业帮 分类:英语作业 时间:2024/04/29 00:32:12
关于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.
关于matlab,调试的时候出现Error:The expression to the left of the equa
%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