Plot wavelet packets colored coefficients
wpviewcf (
T
,CMODE)
wpviewcf (T
,CMODE,NBCOL)
wpviewcf (
plots the colored coefficients for the terminal nodes of the treeT
,CMODE)T
.
T
is a wavelet packet tree andCMODE
is an integer, which represents the color mode. The color modes are listed in the table below.
Color Mode | Description |
---|---|
1 | Frequency order – Global coloration – Absolute values |
2 | Frequency order – By level – Absolute values |
3 | Frequency order – Global coloration – Values |
4 | Frequency order – By level coloration – Values |
5 | 自然秩序Abso——全球着色lute values |
6 | Natural order – By level – Absolute values |
7 | Natural order – Global coloration – Values |
8 | Natural order – By level coloration – Values |
wpviewcf (
usesT
,CMODE,NBCOL)NBCOL
colors.
% Create a wavelet packet tree. x = sin(8*pi*[0:0.005:1]); t = wpdec(x,3,'db1'); % Plot tree t. % Click the node (3,0), (see theplot
function) plot(t);
% Plot the colored wavelet packet coefficients. wpviewcf(t,1);