15.04.2015 Views

Matlab_15Nisan

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

clc;<br />

x=0:0.1:10<br />

y=0:0.2:8<br />

[X,Y]=meshgrid(x,y)<br />

Z=X+Y;<br />

%iv<br />

contour(Z)<br />

colormap bone<br />

15<br />

Nisan<br />

2015<br />

clc;<br />

x=0:0.1:5<br />

y=0:0.2:4<br />

[X,Y]=meshgrid(x,y)<br />

z=X.^2+Y.^2<br />

subplot(2,2,1)<br />

surf(Z)<br />

subplot(2,2,2)<br />

surface(Z)<br />

subplot(2,2,3)<br />

mesh(Z)<br />

subplot(2,2,4)<br />

contour(Z)<br />

colormap summer<br />

ÖRNEK(c): Bir önceki örneğin Z=(sin(x/2)+cos(y/3) fonksiyonu ile yapımı..<br />

clc;<br />

x=0:0.1:5<br />

y=0:0.2:4<br />

[X,Y]=meshgrid(x,y)<br />

Z=sin(X/2)+cos(Y/3)<br />

subplot(2,2,1)<br />

surf(Z)<br />

subplot(2,2,2)<br />

surface(Z)<br />

4 | K O D Y A

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!