Load an indexed image with its colormap into the workspace. The load command returns a structure containing the image data and the colormap. View the image.
RGB colormap, specified as a c-by-3 numeric matrix with values in
the range [0, 1]. Each row of map is a three-element RGB triplet
that specifies the red, green, and blue components of a single color of the
colormap.
If you have Parallel Computing Toolbox™ installed, map can also be a
gpuArray.
Grayscale colormap, returned as a c-by-3 numeric matrix with
values in the range [0, 1]. The three columns of newmap are
identical, so that each row specifies a single intensity value.
If you have Parallel Computing Toolbox installed, then newmap can also be a gpuArray.
Data Types: double
Extended Capabilities
C/C++ Code Generation Generate C and C++ code using MATLAB® Coder™.
GPU Arrays Accelerate code by running on a graphics processing unit (GPU) using Parallel Computing Toolbox™.
This function fully supports GPU arrays. For more information, see Run MATLAB Functions on a GPU (Parallel Computing Toolbox).
Distributed Arrays Partition large arrays across the combined memory of your cluster using Parallel Computing Toolbox™.
You can also select a web site from the following list:
How to Get Best Site Performance
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.