www.gusucode.com > wavelet工具箱matlab源码程序 > wavelet/wavedemo/ex1_wt.m

    %EX1_WT Example of 1-D wavelet tree (WTREE OBJECT).

%   M. Misiti, Y. Misiti, G. Oppenheim, J.M. Poggi 16-Sep-1999.
%   Last Revision: 18-Oct-1999.
%   Copyright 1995-2002 The MathWorks, Inc.

% load the signal.
  load noisbloc;
  x = noisbloc;

% Define the level and the wavelet.   
  lev = 3;
  wav = 'db2';

% Create the wavelet tree.
  t = wtree(x,lev,wav);

% Plot tree t.
  plot(t)

%---------------------------------------------------
% Change Node Label from Depth_Position to Index.
% Click the node (7). You get the following plot.
%
% HERE NEW PLOT
%---------------------------------------------------
% Change Node Action from Visualize to Split_Merge.
% Merge the node (3).
% Change Node Action from Split_Merge to Visualize.
% Click the node (3). You obtain the following plot.
%
% HERE NEW PLOT
%---------------------------------------------------