Import colormap.q if you wish to use MATLAB style color maps for visualization using the imshow function.
colormap.q | Import colormap.q if you wish to use MATLAB style color maps for visualization using the imshow function. |
Functions | |
colormap | Changes the current color map to the specified name. |
imshow | An overload of the imshow function; to allow color maps to be applied |
Changes the current color map to the specified name.
function y = colormap(name : string)
name | the name of the colormap. Accepted color maps are “jet”, “hsv”, “hot”, “hotter”, “cool”, “rgb”, “cmy”, “gray”. The default color map is “yet”. |
y | a matrix of size Nx3 containing RGB-values of the colors of the map. Note that the number of components N can vary. |