set
Set WPTREE field contents
Syntax
Description
T= set(
sets the contents of the fields for the wavelet packet tree T
,Name=Value
)T
using one or more name-value arguments. For the fields that are objects or
structures, you can also set the subfield contents.
Caution
The set
function should only be used to set the
field ud
.
Examples
Set User Data Field in wptree
Object
Load a signal. Decompose the signal at level 3 with db1
wavelet packets. The decomposition is a wptree
object.
load noisdopp wpt = wpdec(noisdopp,3,"db1"); whos wpt
Name Size Bytes Class Attributes wpt 1x1 12239 wptree
Save the name of the signal in the user data field of the wavelet packet tree.
wpt = set(wpt,ud="Signal name: noisdopp");
Confirm the user data field contains the name.
get(wpt,"ud")
ans = 'Signal name: noisdopp'
Input Arguments
T
— Wavelet packet tree
wptree
Wavelet packet tree, specified as a wptree
object.
Name-Value Arguments
Specify optional pairs of arguments as
Name1=Value1,...,NameN=ValueN
, where Name
is
the argument name and Value
is the corresponding value.
Name-value arguments must appear after other arguments, but the order of the
pairs does not matter.
Example: T = set(T,ud="helloWorld")
Before R2021a, use commas to separate each name and value, and enclose
Name
in quotes.
Example: T = set(T,"ud","helloWorld")
dtree
— Parent object
dtree
object
Parent object, specified as a dtree
object.
wavInfo
— Wavelet information
structure array
Wavelet information, specified as a structure array.
Data Types: struct
wavInfo
FieldswavName
— Wavelet name
character vector | string scalar
Wavelet name, specified as a character vector or string scalar.
Data Types: char
| string
Lo_D
— Lowpass decomposition filter
vector
Lowpass decomposition filter, specified as a vector.
Data Types: double
Hi_D
— Highpass decomposition filter
vector
Highpass decomposition filter, specified as a vector.
Data Types: double
Lo_R
— Lowpass reconstruction filter
vector
Lowpass reconstruction filter, specified as a vector.
Data Types: double
Hi_R
— Highpass reconstruction filter
vector
Highpass reconstruction filter, specified as a vector.
Data Types: double
entInfo
— Entropy information
structure array
Entropy information, specified as a structure array.
Data Types: struct
entInfo
FieldsentName
— Entropy name
character vector | string scalar
Entropy name, specified as a character vector or string scalar
Data Types: char
| string
entPar
— Entropy parameter
scalar | character vector | string scalar
Entropy parameter, specified as a scalar, character vector, or string scalar
Data Types: double
| char
| string
dtree
Fieldsntree
— Parent object
ntree
object
Parent object of dtree
, specified as a
ntree
object.
allNI
— All nodes information
matrix
All nodes information, specified as a matrix.
Data Types: double
terNI
— Terminal nodes information
cell array
Terminal nodes information, specified as a cell array.
Data Types: cell
ntree
Fieldswtbo
— Parent object
wtbo
object
Parent object of ntree
, specified as a
wtbo
object.
order
— Order
integer
Order of the tree, specified as an integer.
Data Types: double
depth
— Depth
integer
Depth of the tree, specified as an integer.
Data Types: double
spsch
— Split scheme
vector
Split scheme for the nodes, specified as a vector of logical values.
Data Types: logical
tn
— Array of terminal nodes
vector
Array of terminal nodes of the tree, specified as a vector of node indices.
Data Types: double
wtbo
FieldswtboInfo
— Object information
character vector | string scalar
Object information, specified as a character vector or string scalar.
Data Types: char
| string
ud
— User data
array | cell array | structure array
User data, specified as an array, cell array, or structure array.
Data Types: double
| struct
| cell
Version History
Introduced before R2006a
Commande MATLAB
Vous avez cliqué sur un lien qui correspond à cette commande MATLAB :
Pour exécuter la commande, saisissez-la dans la fenêtre de commande de MATLAB. Les navigateurs web ne supportent pas les commandes MATLAB.
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)