colormap=rgbmap(c_1,c_2,...,c_n,N,opt,graph);
input:
c_1,c_2,...,c_n - color variables: vectors, matrix(nx3) or strings (if 'rgb' function is available)
N - colormap length (default N=64)
opt='natural' (default) or 'fixed' - various approaches for color interpolation:
%for example, see the difference comparing >>rgbmap(bone,jet,'fixed','graph'); and >>rgbmap(bone,jet,'graph');
graph=
Cite As
Nikolay (2021).rgbmap(varargin)(//www.tatmou.com/matlabcentral/fileexchange/54046-rgbmap-varargin), MATLAB Central File Exchange. Retrieved.
MATLAB Release Compatibility
Platform Compatibility
Windows macOS LinuxCategories
Tags
Acknowledgements
Inspired by:RGB triple of color name, version 2
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.