This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English version of the page.

Note: This page has been translated by MathWorks. Please click here
To view all translated materials including this page, select Japan from the country navigator on the bottom of this page.


Convert indexed image to RGB image


RGB = ind2rgb(X,map)


RGB = ind2rgb(X,map) converts the matrix X and corresponding colormap map to RGB (truecolor) format.

Class Support

X can be of class uint8, uint16, or double. RGB is an m-by-n-by-3 array of class double.

See Also


Introduced before R2006a

Was this topic helpful?