You are now following this Submission
- You will see updates in your followed content feed
- You may receive emails, depending on your communication preferences
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
Cite As
Alex Sanchez (2026). coloindex (https://se.mathworks.com/matlabcentral/fileexchange/10855-coloindex), MATLAB Central File Exchange. Retrieved .
General Information
- Version 1.0.0.0 (983 Bytes)
-
No License
MATLAB Release Compatibility
- Compatible with any release
Platform Compatibility
- Windows
- macOS
- Linux
| Version | Published | Release Notes | Action |
|---|---|---|---|
| 1.0.0.0 | sorry, wrong file |
