Wavelet Toolbox |
Syntax
Description
plot
is a graphical tree-management utility.
The figure that contains the tree is a GUI tool. It lets you change the Node Label to Depth_Position or Index, and Node Action to Split-Merge or Visualize.
The default values are Depth_Position and Visualize.
You can click the nodes to execute the current Node Action.
plot(T,FIG)
plots the tree T
in the figure whose handle is FIG
. This figure was already used to plot a tree, for example using the command
After some split or merge actions, you can get the new tree using its parent figure handle. The following syntax lets you perform this functionality:
In fact, the first argument is dummy. The most general syntax is
where DUMMY is any object parented by an NTREE object. More generally, DUMMY can be any object constructor name returning an NTREE parented object. For example:
Examples
% Create a wavelet packets tree (1-D) load noisbloc x = noisbloc; t = wpdec(x,2,'db2'); % Plot tree t. plot(t) % Change Node Label from Depth_Position to Index. % Click the node (3). You get the following figure. % Change Node Action from Visualize to Split_Merge. % Merge the node (2) and split the node (3). % Change Node Action from Split_Merge to Visualize. % Click the node (7). You obtain the following figure, % which represents the wavelet decomposition at level 3. % Create a wavelet packets tree (2-D) load woman2 t = wpdec2(X,1,'sym4'); % Plot tree t. plot(t) % Change Node Label from Depth_Position to Index. % Click the node (1). You get the following figure.
pat2cwav | qmf |
© 1994-2005 The MathWorks, Inc.