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.

surf, surfcIn this case, C can be the same size as X, Y, and Z and its last row and columnare ignored, Alternatively, its row and column dimensions can be one less thanthose of X, Y, and Z.The surf and surfc functions specify the view point using view(3).The range of X, Y, and Z, or the current setting of the axes XLimMode, YLimMode,and ZLimMode properties (also set by the axis function) determine the axislabels.The range of C, or the current setting of the axes CLim and ClimMode properties(also set by the caxis function) determine the color scaling. The scaled colorvalues are used as indices into the current colormap.ExamplesDisplay a surface and contour plot of the peaks surface.[X,Y,Z] = peaks(30);surfc(X,Y,Z)colormap hsvaxis([−3 3 −3 3 −10 5])50−5−103210−1−2−3−3−2−101232-470

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

Saved successfully!

Ooh no, something went wrong!