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.

colormapExamplesThe images and colormaps demo, imagedemo, provides an introduction tocolormaps. Select Color Spiral from the menu. This uses the pcolor functionto display a 16-by-16 matrix whose elements vary from 0 to 255 in a rectilinearspiral. The hsv colormap starts with red in the center, then passes throughyellow, green, cyan, blue, and magenta before returning to red at the outsideend of the spiral. Selecting Colormap Menu gives access to a number of othercolormaps.The rgbplot function plots colormap values. Try rgbplot(hsv),rgbplot(gray), and rgbplot(hot).The following commands display the flujet data using the jet colormap.load flujetimage(X)colormap(jet)2-87

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

Saved successfully!

Ooh no, something went wrong!