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

    %% Detect Number of Change Points
% Load the example signal, |nbumpr1.mat|. The signal has two variance 
% change points, which results in three intervals. Use |cmddenoise| to 
% detect the number of change points. 
load nbumpr1.mat;
[sigden,~,thrParamsOut,~,bestNbofInt] = ...
       cmddenoise(nbumpr1,'sym4',1);
fprintf('Found %d change points.\n',bestNbofInt-1);