关于matlab,调试的时候出现Error:The expression to the left of the equals sign is not a valid……

关于matlab,调试的时候出现Error:The expression to the left of the equals sign is not a valid……

题目
关于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.
答案
%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
举一反三
已知函数f(x)=x,g(x)=alnx,a∈R.若曲线y=f(x)与曲线y=g(x)相交,且在交点处有相同的切线,求a的值和该切线方程.
我想写一篇关于奥巴马的演讲的文章,写哪一篇好呢?为什么好
奥巴马演讲不用看稿子.为什么中国领导演讲要看?
想找英语初三上学期的首字母填空练习……
英语翻译
最新试题
热门考点

超级试练试题库

© 2017-2019 超级试练试题库,All Rights Reserved.