IRootLab
An Open-Source MATLAB toolbox for vibrational biospectroscopy

Detailed Description

Generates a colormap from an integer vector of classes.

The vector may also have "refuses" and outlier indicators (-1, -2, -3, ...). These negative values will be marked as black

Definition in file classes2colormap.m.

Go to the source code of this file.

Functions

function classes2colormap (in y, in flag_skip)
 

Function Documentation

function classes2colormap ( in  y,
in  flag_skip 
)
Parameters
yinteger vector of classes
flag_skipWhether to skip the non-existent indexes. If FALSE, colormap will be filled with grays
Returns
cm