coloindex
Nessuna licenza
Calculates the index for direct index
color mapping with multiple colormaps
USAGE:
ic = colorindex(z,cmap,clim)
DESCRIPTION:
Calculates the index for use with
direct index color mapping
This allows for different colormaps
on the same figure.
This is done by appending new colormaps
to the figure's colormap and saving the
lengths of each subcolormap to calculate
the corresponding color index.
The index can be used as follows
image(ic,'CdataMapping','Direct')
surf(ic,'CdataMapping','Direct')
contour(ic,'CdataMapping','Direct')
etc.
The only problem with this is that the
matlab colobar function cannot be used.
Instead you can use colorbardi.m
INPUT:
z - Data
cmap - Colormap
clim - Pseudocolor axis scaling limits
OUTPUT:
ic - Color Index
Cita come
Alex Sanchez (2024). coloindex (https://www.mathworks.com/matlabcentral/fileexchange/10855-coloindex), MATLAB Central File Exchange. Recuperato .
Compatibilità della release di MATLAB
Compatibilità della piattaforma
Windows macOS LinuxCategorie
Tag
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Scopri Live Editor
Crea script con codice, output e testo formattato in un unico documento eseguibile.
Versione | Pubblicato | Note della release | |
---|---|---|---|
1.0.0.0 | sorry, wrong file |