12.07.2015 Views

MATLAB Function Reference (Volume 2: Graphics)

MATLAB Function Reference (Volume 2: Graphics)

MATLAB Function Reference (Volume 2: Graphics)

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.

contourView the same function over the same range with 20 evenly spaced contourlines and colored with the default colormap jet.contour(X,Y,Z,20)32.521.510.50−0.5−1−1.5−2−2 −1.5 −1 −0.5 0 0.5 1 1.5 2Use interp2 and contour to create smoother contours.Z = magic(4);[C,h] = contour(interp2(Z,4));clabel(C,h)2-102

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

Saved successfully!

Ooh no, something went wrong!