www.gusucode.com > wavelet 源码程序 matlab案例代码 > wavelet/PartitionSignalIntoIncreasingNumbersOfIntervalsExample.m

    %% Partition Signal into Increasing Numbers of Intervals with Thresholds
% Load the example signal, |nbumpr1.mat|. Partition the signal into 1 to 6 
% intervals assuming 0 to 5 change points. Compute the thresholds for each 
% interval. Using the Daubechies' least-asymmetric wavelet with 4 vanishing
% moments return the intervals and corresponding thresholds. Display the 
% results. 
load nbumpr1.mat;
[sigden,~,~,int_DepThr_Cell] = cmddenoise(nbumpr1,'sym4',1);
format bank;
disp('          Begin        End          Threshold ');
cellfun(@disp,int_DepThr_Cell,'UniformOutput',false);