MATLAB語言考試章節(jié)練習(xí)(2019.05.06)

來源:考試資料網(wǎng)
參考答案:>>a=[1 2 3;4 5 6;7 8 9];
>>a^2
ans=
1 4 9
參考答案:

>>x=-5:0.2:5;
>>y=x.^3+x+1;
>>plot(x,y)

7.問答題

解方程組

參考答案:>>a=[2 9 0;3 4 11;2 2 6];
>>b=[1 3 6 6]’;
>>...
參考答案:x=input(’請輸入成績’)
ifx>=90&x<=100
disp(&...
參考答案:>> student.name='shen yang';
>> student.sex=...