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.

» %Note the function is vectorized<br />

» subplot(1,2,1),mesh(X,Y,f(X,Y))<br />

» title('A Mesh Plot')<br />

» subplot(1,2,2),surf(X,Y,f(X,Y))<br />

» title('A Surf Plot')<br />

Colormap.<br />

Skema warna untuk suface plots dapat dengan mudah diganti. Beberapa<br />

diantara color maps: hot, cool, gray, copper, summer, winter,bone.<br />

Menggunakan contoh di atas<br />

>>colormap(whatever you choose)<br />

>>colorbar

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

Saved successfully!

Ooh no, something went wrong!