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

    %% Specify the Maximum Number of Iterations  
% This example shows how to set the maximum number of iterations of the
% orthogonal matching pursuit to 50.   

%%  
load cuspamax;
lstcpt = {{'wpsym4',1},{'wpsym4',2},'dct'};
mpdict = wmpdictionary(length(cuspamax),'LstCpt',lstcpt);
[yfit,r,coeff,iopt,qual] = wmpalg('OMP',cuspamax,mpdict,...
    'itermax',50);