04.05.2013 Views

Matlab Basics Tutorial

Matlab Basics Tutorial

Matlab Basics Tutorial

SHOW MORE
SHOW LESS

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

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

Plot Kontur (Contour Plots)<br />

Diberikan data mesh, plot kontur dapat di bangkitkan dengan perintah contour.<br />

Sebagai contoh:<br />

» x=0:0.5:6;<br />

» t=0:0.5:20;<br />

» [X,T]=meshgrid(x,t);<br />

» g=inline('cos(x-0.4*y).*exp(-0.4*x)','x','y')<br />

g =<br />

Inline function:<br />

g(x,y) = cos(x-0.4*y).*exp(-0.4*x)<br />

» contour(X,T,g(X,T))<br />

» colorbar<br />

» title('Damped Traveling Wave')<br />

» xlabel('x')<br />

» ylabel('t')

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

Saved successfully!

Ooh no, something went wrong!