getCmapString

returns the colormap of selected handle as a string.

https://www.facebook.com/lazymatlabber/

You are now following this Submission

% str = getCmapString(h) finds what colormap is used in the handle h
% and returns as a string. Matlab has 18 colormaps:
% parula (default)
% jet
% hsv
% hot
% cool
% spring
% summer
% autumn
% winter
% gray
% bone
% copper
% pink
% lines
% colorcube
% prism
% flag
% white
% If no matches are found, "unknown" is returned.
%
% h should be a handle of which the class has a Colormap property.

Cite As

lazymatlab (2026). getCmapString (https://ch.mathworks.com/matlabcentral/fileexchange/73759-getcmapstring), MATLAB Central File Exchange. Retrieved .

General Information

MATLAB Release Compatibility

  • Compatible with any release

Platform Compatibility

  • Windows
  • macOS
  • Linux
Version Published Release Notes Action
1.0.0