wpviewcf
Plot wavelet packets colored coefficients
Description
Examples
View Wavelet Packet Coefficients
Create a wavelet packet tree using the Haar wavelet.
Fs = 200;
x = 0:1/Fs:1;
y = sin(8*pi*x);
t = wpdec(y,3,"haar");
Use plot
, the plot tree GUI, to plot the tree.
plot(t)
Click the node (3,0)
to get this figure:
Plot the colored wavelet packet coefficients.
wpviewcf(t,1)
Input Arguments
T
— Wavelet packet tree
wptree
object
Wavelet packet tree, specified as a wptree
object.
cmode
— Color mode
1
| 2
| 3
| 4
| ...
Color mode to use to plot the coefficients, specified by one of the values listed here.
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 | Natural order – Global coloration – Absolute values |
6 | Natural order – By level – Absolute values |
7 | Natural order – Global coloration – Values |
8 | Natural order – By level coloration – Values |
nbcol
— Number of colors
positive integer
Number of colors to use to plot the coefficients, specified as a positive integer.
Version History
Introduced before R2006a
See Also
MATLAB Command
You clicked a link that corresponds to this MATLAB command:
Run the command by entering it in the MATLAB Command Window. Web browsers do not support MATLAB commands.
Select a Web Site
Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .
You can also select a web site from the following list:
How to Get Best Site Performance
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Americas
- América Latina (Español)
- Canada (English)
- United States (English)
Europe
- Belgium (English)
- Denmark (English)
- Deutschland (Deutsch)
- España (Español)
- Finland (English)
- France (Français)
- Ireland (English)
- Italia (Italiano)
- Luxembourg (English)
- Netherlands (English)
- Norway (English)
- Österreich (Deutsch)
- Portugal (English)
- Sweden (English)
- Switzerland
- United Kingdom (English)