H = rgb2hsv(M)
H = rgb2hsv(M) converts an RGB colormap to an HSV colormap. Each map is a matrix with any number of rows, exactly three columns, and elements in the interval from 0 to 1. The columns of the input matrix, M, represent intensities of red, green, and blue respectively. The columns of the resulting output matrix, H, represent hue, saturation, and value, respectively.
brighten,colormap,hsv,hsv2rgb
(c) Copyright 1994 by The MathWorks, Inc.