wptree
WPTREE constructor
Syntax
Description
Examples
Create Wavelet Packet Tree
Create a 1-D signal.
x = rand(1,512);
Create the wavelet packet decomposition tree associated with the wavelet packet decomposition of the signal at level 3 using thedb3
wavelet.
t = wptree(2,3,x,"db3");
Recompose the fourth and fifth nodes of the tree. Plot the result.
t = wpjoin(t,[4;5]); plot(t)
Click the node(3,0)
to get this figure:
Input Arguments
order
—Order of the tree
2
|4
Order of the tree, specified as2
or4
. The order of the tree is the number of children of each nonterminal node. Ifx
is a vector (1-D signal), specify an order of2
. Ifx
是一个矩阵(image), specify an order of4
.
Data Types:double
depth
—Level of wavelet packet decomposition
positive integer
Level of wavelet packet decomposition, specified as a positive integer.
Data Types:double
x
—Input data
vector|matrix
Input data, specified as a vector (signal) or matrix (image).
Data Types:double
wname
—Wavelet name
character vector|string scalar
Wavelet name, specified as a character vector or string scalar. For more information, seewfilters
.
Data Types:string
|char
userdata
—User data
array|cell array|structure array
User data to set in theuserdata
field ofT
, specified as an array, cell array, or structure array.
Example:t = wptree(2,3,x,'db3','sure',0.5,{1,"aa",rand(3,3)})
Output Arguments
T
— Wavelet packet tree
WPTREE
object
Wavelet packet tree, returned as aWPTREE
object.
TheWPTREE
object has these fields:
'dtree' |
DTREE parent object |
'wavInfo' |
Structure (wavelet information) |
'entInfo' |
Structure (entropy information) |
For more information on object fields, see theget
function or type
help wptree/get
The wavelet information structure,'wavInfo'
, contains
'wavName' |
Wavelet name |
'Lo_D' |
Low Decomposition filter |
'Hi_D' |
High Decomposition filter |
'Lo_R' |
Low Reconstruction filter |
'Hi_R' |
High Reconstruction filter |
The entropy information structure,'entInfo'
, contains
'entName' |
Entropy name |
'entPar' |
Entropy parameter |
Fields from the DTREE parent object:
'allNI' |
All nodes information |
'allNI'
is an array of sizenbnode
by5
, which contains
ind |
Index |
size |
Size of data |
ent |
Entropy |
ento |
Optimal entropy |
Each line is built based on this scheme:
Version History
Introduced before R2006a
Open Example
You have a modified version of this example. Do you want to open this example with your edits?
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)