MATLAB語言考試章節(jié)練習(2019.04.30)

來源:考試資料網
參考答案:

程序:
y=0;n=100;
for i=1:n
y=y+1/i^2;
end

參考答案:

>>d=deconv([3 1 3 6 8],[1 4])
d=
3 1 2

參考答案:>> strl='hello2'
strl = hello2
>> double(s...
參考答案:>> 8<9 ans = 1
>> 8<=9 ans = 1
>> 8==9 ans = 0
參考答案:>>P=[8,2,2,0,6,1,0];
>>poly2sym(P)
A.ns=8*x^6...
參考答案:>>y=[3 6 9 6;6 7 7 4;7 3 2 3;4 2 5 2;2 4 8 7;8 7 4 4];
...
參考答案:>>t=(0:20)/20;
>>r=sin(2*pi*t)+2;
>>[x,y,z]=cylind...
參考答案:>>r=[1 -7 2 4 0];
>>p=roots(r);
-0.2151
0.445...
參考答案:在安裝MATLAB時,安裝內容由選擇組件窗口中個復選框是否被勾選來決定,可以根據自己的需要選擇安裝內容,但基本平臺(即M...