getCmapString
Version 1.0.0 (1,64 KB) von
lazymatlab
returns the colormap of selected handle as a string.
% 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.
Zitieren als
lazymatlab (2026). getCmapString (https://de.mathworks.com/matlabcentral/fileexchange/73759-getcmapstring), MATLAB Central File Exchange. Abgerufen.
Kompatibilität der MATLAB-Version
Erstellt mit
R2019b
Kompatibel mit allen Versionen
Plattform-Kompatibilität
Windows macOS LinuxKategorien
- MATLAB > Graphics > Labels and Styling > Color and Styling > Blue >
Mehr zu Blue finden Sie in Help Center und MATLAB Answers
Tags
Live Editor erkunden
Erstellen Sie Skripte mit Code, Ausgabe und formatiertem Text in einem einzigen ausführbaren Dokument.
| Version | Veröffentlicht | Versionshinweise | |
|---|---|---|---|
| 1.0.0 |
