31.03.2015 Views

Matlab18mart

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

ÖRNEK: [0,2*pi] aralığında pi/20 artış ile aynı eksen üzerinde sin(x),sin(x-pi/4),sin(x-pi/2) ve sin(x-pi)<br />

clc;<br />

clear;<br />

x=0:pi/20:2*pi;<br />

plot(x,sin(x),'k-');<br />

hold on<br />

plot(x,sin(x-pi/4),'r--o');<br />

plot(x,sin(x-pi/2),'g-s');<br />

plot(x,sin(x-pi),'b-p');<br />

legend('sin(x)','sin(x-\pi/4)','x-\pi/2','sin(x-<br />

\pi)',-1)<br />

Legend değerleri:<br />

-1: grafiğin dışında 0: grafik içinde<br />

1: sağ üst köşe 2: sol üst köşe<br />

3: sol alt köşe 4: sağ alt köşe<br />

GET VE SET KOMUTU:<br />

get: Değerini alma<br />

set: Değer atama<br />

YTick/Xtick: Y/X ekseninin değerleri<br />

YTickLabel/XTickLabel: Manuel olarak Y/X eksenindeki değerleri değiştirebiliriz.<br />

x=-pi:0.1:pi<br />

plot(x,sin(x));<br />

%set(gcf,'Color',[1,0,0]) %rgb kullanımı

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

Saved successfully!

Ooh no, something went wrong!