No BSD License  

Highlights from
coloindex

Be the first to rate this file! 3 Downloads (last 30 days) File Size: 1.98 KB File ID: #10855
image thumbnail

coloindex

by alex sanchez

 

24 Apr 2006 (Updated 27 Apr 2006)

calculates the index for use with direct color indexing with multiple colormaps

| Watch this File

File Information
Description

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

MATLAB release MATLAB 7 (R14)
Tags for This File  
Everyone's Tags
Tags I've Applied
Add New Tags Please login to tag files.
Please login to add a comment or rating.
Updates
27 Apr 2006

sorry, wrong file

Tag Activity for this File
Tag Applied By Date/Time
specialized alex sanchez 22 Oct 2008 08:23:07
plotting alex sanchez 22 Oct 2008 08:23:07
direct color indexing alex sanchez 22 Oct 2008 08:23:07

Contact us at files@mathworks.com