????1????1???1??1????2????1???,B??1????3???1?, 求 ?1????1????3. 已知 A???????????????????????2????????????① AB-2A , ② AB-BA,A.*B,B.*A , ③ A?1B?B?1A . 4.
12x?2?????1?3?i?y?eln(x?1?x2) x???,求 2?5?????0.65?.
?23????????10??????0.778???0???41??????45?????????65???????5?,求 D2??,??D.*D???,??D.^2 5.D???32?????????5??????????0???????32?????6?????9.54??????54?????3.14??.
6.x = (1,1,1,1),y = (2,3,4,5)’ ,求 xy?,yx . 7.完成下列操作并观察结果
① ones(6),?ones(5,6),?ones(6,5) ② zeros(4),?zeros(3,4),?zeros(4,3) ③ eye(5),?eye(4,5),?eye(5,4)
④ x?rand?i?rand?,A?rand(3),?B?rand(3,4) ⑤ hilb(3),?hilb(4)?,?invhilb(3)
?y?[5??4??3??2??1],?T?toeplitz(x,y)?,S?toeplitz(x) ⑥ x?[1??2??3??4??5],⑦ A?compan(x)?,B?compan(y) ⑧ vander(x)?,vander(y)
⑨ C=[ones(4),zeros(4);eye(4),rand(4)] ⑩ C=[ones(4),zeros(4);eye(4),rand(5)] 8. 建立向量
① x?(1:3)?,?y?(1:0.5:3)?,?z?(4:?0.5:0) ② w?linspace(??/4?,?/4)?,?v?linspace(1,3,5)
11
9. 完成下列命令,观察结果
① a=[1:3;4:6;7:9],x=5;xa=x<=a ② b=[0 4 1;1 0 8;2 0 0];ab=a &b ③ n_b=~b
10. 计算P265 x=1;y(1)=x ;
for k=1:15
x=1/(x+1); y(k)=x; end y 11. 计算P266
x=1;y(1)=x ; w=7/25; for k=1:10
x=w*x+(1-w)/(x+1); y(k)=x; end y
12. 练习format命令:对第1题练习各种输出格式.
12