Home > . > set_col_vec.m

set_col_vec

PURPOSE ^

'set_col_vec': sets the color code for vectors depending on a scalar vec_C and parameters given by the struct colcode

SYNOPSIS ^

function [colorlist,col_vec,colcode_out]=set_col_vec(colcode,vec_C)

DESCRIPTION ^

'set_col_vec': sets the color code for vectors depending on a scalar vec_C and parameters given by the struct colcode
function [colorlist,col_vec,minC,colcode1,colcode2,maxC]=colvec(colcode,vec_C)
OUTPUT
colorlist(nb,3); %list of nb colors
col_vec, size=[length(vec_C),3)];%list of color indices corresponding to vec_C
minC, maxC: min and max of vec_C
colcode1, colcode2: absolute threshold in vec_C corresponding to colcode.colcode1 and colcode.colcode2
INPUT
 colcode: struture setting the colorcode for vectors
 colcode.CName: 'ima_cor','black','white',...
 colcode.ColorCode ='black', 'white', 'rgb','brg', '64 colors'
 colcode.FixedCbounds =0; thresholds scaling relative to min and max, =1 fixed thresholds
 colcode.MinC; min 
 colcode.MaxC; max
 colcode.colcode1: first threshold for rgb, relative to min (0) and max (1)
 colcode.colcode2: second threshold for rgb, relative to min (0) and max (1), 
 rmq: we need min <= colcode1 <= colcode2 <= max, otherwise
 colcode1 and colcode2 are adjusted to the bounds
 vec_C: matlab vector representing the scalar setting the color

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:
Generated on Wed 10-Mar-2010 20:42:36 by m2html © 2003