Mai Đường Sỹ Hùng.54CLC1 Bài % 3/6/12 8:27 PM % a=[1,1;1,3] b=[1,2,1;2,2,1] c=[-1,2;-2,5;7,11] a*b*c Bài % 3/8/12 7:03 AM % a=[1,2,3;2,3,4;3,4,5] a=[1,1;1,3] b=[1,2,1;2,2,1] c=[-1,2;-2,5;7,11] a*b*c a=[2,1,-1;0,1,-4] b=[-2,1,0;-3,2,2] a' a*a' a'*a 3*a+2*b 3*a-2*b Baì % 3/8/12 7:03 AM % x=0:0.1:6; f=(0.5*x.^2).*(1-heaviside(x-2))+2*(heaviside(x-2)-heaviside(x-4))+(6-x).*(heaviside(x-4)); plot(x,f) Bài syms u v; >> x=3*sin(u)*cos(v); y=3*sin(u)*sin(v); z=3*cos(u); >> ezsurf(x,y,z,[0 pi 2*pi]) Bài syms x y z; S=solve('x^2+y^2+z^2=2','x+y=1','y+z=1') x=S.x y=S.y z=S.z Bài a >> n=zeros(10,1); n(1)=1;n(2)=1; for i=3:length(n) n(i)=n(i-1)+n(i-2); end; >> n n= b n=zeros(50,1); n(1)=1;n(2)=1; for i=3:length(n) n(i)=n(i-1)+n(i-2); end; k=zeros(49,1); for i=1:length(k) k(i)=n(i+1)/n(i); end; k Bài % 3/8/12 7:40 AM % disp('Cho ma tran A ') A=[2 7;3 6;8 5;1 5] B1=A(:,2); B2=A(:,4); B=[B1 B2] C1=A(1,:); C2=A(3,:); C=[C1;C2] A=A' inv(A) A=[2 7;3 6;8 5;1 5]; A.^(1/2) Bài % 3/8/12 7:40 AM % A=[1,2,3,4;4,3,2,1;2,3,4,5;5,4,3,2] A+15 A.^2 A(:,1)+10 A(1,:)+10 A(2,:)+10 A(:,4)+10 Bài % 3/9/12 12:28 AM % x=0.01:0.01:0.1 y=sin(1./x) plot(x,y) Bài 10 % 3/9/12 12:28 AM % x=0:pi/10:2*pi/3 plot(x,x.^2) hold on plot(x,sin(3*x)) ... k(i)=n(i+1)/n(i); end; k Bài % 3/8/12 7:40 AM % disp('Cho ma tran A ') A=[2 7;3 6;8 5;1 5] B1=A(:,2); B2=A(:,4); B=[B1 B2] C1=A(1,:); C2=A(3,:); C=[C1;C2] A=A' inv(A) A=[2 7;3 6;8 5;1 5]; A.^(1/2) Bài % 3/8/12... A=[1,2,3,4;4,3,2,1;2,3,4,5;5,4,3,2] A+15 A.^2 A(:,1)+10 A(1,:)+10 A(2,:)+10 A(:,4)+10 Bài % 3/9/12 12:28 AM % x=0.01:0.01:0.1 y=sin(1./x) plot(x,y) Bài 10 % 3/9/12 12:28 AM % x=0:pi/10:2*pi/3 plot(x,x.^2) hold