wcodemat
Extended pseudocolor matrix scaling
Syntax
Y = wcodemat(X)
Y = wcodemat(X,NBCODES)
Y = wcodemat(X,NBCODES,OPT)
Y = wcodemat(X,NBCODES,OPT,ABSOL)
Description
wcodemat
rescales an input matrix to a specified range for display. If the specified range is the full range of the current colormap,wcodemat
is similar in behavior toimagesc
.
Y = wcodemat(X)
rescales the matrixX
to integers in the range [1,16].
Y = wcodemat(X,NBCODES)
rescales the inputX
as integers in the range [1,NBCODES
] . The default value ofNBCODES
is 16.
Y = wcodemat(X,NBCODES,OPT)
rescales the matrix along the dimension specified byOPT
. Valid character vectors forOPT
are:'column'
(or'c'
),'row'
(or'r'
), and'mat'
(or'm'
).'rows'
scalesX
row-wise,'column'
scalesX
column-wise, and'mat'
scalesX
globally. The default value ofOPT
is'mat'
.
Y = wcodemat(X,NBCODES,OPT,ABSOL)
rescales the input matrixX
based on the absolute values of the entries inX
ifABSOL
is nonzero, or based on the signed values ofX
ifABSOL
is equal to zero. The default value ofABSOL
is 1.