www.gusucode.com > wavelet 源码程序 matlab案例代码 > wavelet/ComplexShannonWaveletExample.m
%% Complex Shannon Wavelet % Obtain and plot a complex Shannon wavelet. Set the bandwidth and center % frequency parameters. % Copyright 2015 The MathWorks, Inc. fb = 1; fc = 1.5; %% % Set the effective support and number of sample points. lb = -20; ub = 20; n = 1000; %% % Obtain the complex-valued Shannon wavelet and plot the real and imaginary % parts. [psi,x] = shanwavf(lb,ub,n,fb,fc); subplot(211) plot(x,real(psi)) title('Complex Shannon wavelet') xlabel('Real part'); grid on; subplot(212) plot(x,imag(psi)) xlabel('Imaginary part') grid on;