www.gusucode.com > wavelet 源码程序 matlab案例代码 > wavelet/MRAOfECGSignalExample.m
%% MRA Using Non-Default Wavelet % Construct an MRA of an ECG signal down to level four using the 'db2' % wavelet. %% % Copyright 2015 The MathWorks, Inc. load wecg; lev = 4; wtecg = modwt(wecg,'db2',lev); mra = modwtmra(wtecg,'db2'); %% % Plot the ECG waveform and the MRA. subplot(6,1,1) plot(wecg) for kk = 2:lev+2 subplot(6,1,kk) plot(mra(kk-1,:)) end