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

    %% Complex Morlet Wavelet
% Construct a complex-valued Morlet wavelet with a bandwidth parameter of
% 1.5 and a center frequency of 1. Set the effective support to $[-8,8]$
% and the length of the wavelet to 1000.

% Copyright 2015 The MathWorks, Inc.

N = 1000;
Lb = -8;
Ub = 8;
fb = 1.5;
fc = 1;
[psi,x] = cmorwavf(Lb,Ub,N,fb,fc);
%%
% Plot the real and imaginary parts of the wavelet.
subplot(2,1,1)
plot(x,real(psi)); title('Real Part');
subplot(2,1,2)
plot(x,imag(psi)); title('Imaginary Part');