Zerocolor

Versione 1.0.0.0 (3,01 KB) da Jurgen
Set colormap entry for zero values to specified RGB color
627 download
Aggiornato 24 gen 2013

Visualizza la licenza

The images are generated by the examples in the help section.

zerocolor(CLR)
Updates current figure's colormap so that zeros get color CLR. CLR is a vector between 0-1, e.g. [.4 .2 .9] or a standard MATLAB color string.

cmap = zerocolor(H,CLR)
Returns the updated colormap cmap based on the figure with handle H.

See the function help for all the syntax options. Not hard to adjust the code for an arbitrary value other than zero.

feedback is welcome

Cita come

Jurgen (2024). Zerocolor (https://www.mathworks.com/matlabcentral/fileexchange/39985-zerocolor), MATLAB Central File Exchange. Recuperato .

Compatibilità della release di MATLAB
Creato con R2008a
Compatibile con qualsiasi release
Compatibilità della piattaforma
Windows macOS Linux
Categorie
Scopri di più su Colormaps in Help Center e MATLAB Answers

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
Versione Pubblicato Note della release
1.0.0.0