Professional Documents
Culture Documents
Matlab 4
Matlab 4
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
x=[1 3 0.5 2.5 2]
explode=[0 0 0 1 0]
pie3(x,explode)
colormap hsv