coloindex

版本 1.0.0.0 (983 字节) 作者: Alex Sanchez
calculates the index for use with direct color indexing with multiple colormaps
2.0K 次下载
更新时间 2006/4/27

无许可证

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

引用格式

Alex Sanchez (2024). coloindex (https://www.mathworks.com/matlabcentral/fileexchange/10855-coloindex), MATLAB Central File Exchange. 检索来源 .

MATLAB 版本兼容性
创建方式 R14
兼容任何版本
平台兼容性
Windows macOS Linux
类别
Help CenterMATLAB Answers 中查找有关 Colormaps 的更多信息

Community Treasure Hunt

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

Start Hunting!
版本 已发布 发行说明
1.0.0.0

sorry, wrong file