MATLAB 第二版课后答案 unit3—8unit3实验指导1、 n=input('请输入一个三位数:');a=fix(n/100);b=fix((n-a*100)/10);c=n-a*100-b*10;d=c*100+b*10+a2(1)n=input('请输入成绩’);switch ncase num2cell(90:100) p='A';case num2cell(80:89) p='B';case num2cell(70:79) p=’C';case num2cell(60:69) p='D';otherwise p='E';endprice=p(2)n=input(’请输入成绩');if n〉=90&n〈=100 p='A’;elseif n>=80&n<=89 p='B';elseif n〉=70&n<=79 p=’C’;elseif n>=60&n<=69 p='D';else p='E';endprice=p(3)try n;catch price='erroe'end3n=[1,5,56,4,3,476,45,6,3,76,45,6,4,3,6,4,23,76,908,6];a=n(1);b=n(1);for m=2:20 if n(m)>a a=n(m); elseif n(m)