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

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

spinmapPurpose2spinmapSpin colormapSyntaxDescriptionspinmapspinmap(t)spinmap(t,inc)spinmap('inf')The spinmap function shifts the colormap RGB values by some incrementalvalue. For example, if the increment equals 1, color 1 becomes color 2, color 2becomes color 3, etc.spinmap cyclically rotates the colormap for approximately five seconds usingan incremental value of 2.spinmap(t) rotates the colormap for approximately 10*t seconds. The amountof time specified by t depends on your hardware configuration (e.g., if you arerunning <strong>MATLAB</strong> over a network).spinmap(t,inc) rotates the colormap for approximately 10*t seconds andspecifies an increment inc by which the colormap shifts. When inc is 1, therotation appears smoother than the default (i.e., 2). Increments greater than 2are less smooth than the default. A negative increment (e.g., –2) rotates thecolormap in a negative direction.spinmap('inf') rotates the colormap for an infinite amount of time. To breakthe loop, press Ctrl-C.See Alsocolormap2-453

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

Saved successfully!

Ooh no, something went wrong!