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.

hsv2rgbPurpose2hsv2rgbConvert HSV colormap to RGB colormapSyntaxDescriptionRemarksM = hsv2rgb(H)M = hsv2rgb(H) converts a hue-saturation-value (HSV) colormap to ared-green-blue (RGB) colormap. H is an m-by-3 matrix, where m is the numberof colors in the colormap. The columns of H represent hue, saturation, andvalue, respectively. M is an m-by-3 matrix. Its columns are intensities of red,green, and blue, respectively.As H(:,1) varies from 0 to 1, the resulting color varies from red through yellow,green, cyan, blue, and magenta, and returns to red. When H(:,2) is 0, thecolors are unsaturated (i.e., shades of gray). When H(:,2) is 1, the colors arefully saturated (i.e., they contain no white component). As H(:,3) varies from0 to 1, the brightness increases.The <strong>MATLAB</strong> hsv colormap uses hsv2rgb([hue saturation value]) where hueis a linear ramp from 0 to 1, and saturation and value are all 1’s.See Alsobrighten, colormap, rgb2hsv2-226

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

Saved successfully!

Ooh no, something went wrong!