Professional Documents
Culture Documents
A (0 - 6 - 1 6 2 - 16 - 5 20 - 10) X X0 (1 1 1) For T 0:.01:1 X (X Expm (T A) X0) End Plot3 (X (1,:), X (2,:), X (3,:) ,'-O') Grid
A (0 - 6 - 1 6 2 - 16 - 5 20 - 10) X X0 (1 1 1) For T 0:.01:1 X (X Expm (T A) X0) End Plot3 (X (1,:), X (2,:), X (3,:) ,'-O') Grid
6 2 -16
-5 20 -10]
X=[];
X0=[1
1
1];
for t=0:.01:1
X=[X expm(t*A)*X0];
end
plot3(X(1,:),X(2,:),X(3,:),'-o')
grid
[x,y]=meshgrid(-3:1:3);
z=peaks(x,y);
surf(x,y,z)
[X,Y,Z]=peaks;
contour3(X,Y,Z,20)
h=findobj('Type','patch');
set(h,'LineWidth',2)
title('20 de contururi pt. functia peaks')
Grafice Pie
t=(1/16:1/8:1)'*2*pi;
x=sin(t);
y=cos(t);
fill(x,y,'r')
axis square