cmorwavf
Generate a complex Morlet wavelet.
Syntax
psi = cmorwavf(lb, ub, n, fb, fc)
[psi,x] = cmorwavf(...)
Inputs
- lb
- The lower bound.
- ub
- The upper bound.
- n
- The number of points.
- fb
- The frequency bandwidth parameter.
- fc
- The center frequency. (default: 1000 Hz)
Outputs
- psi
- The complex Morlet wavelet values.
- x
- The grid values.
Example
Plot the real and imaginary components of a complex Morlet wavelet.
lb = -5;
ub = 5;
n = 401;
fb = 3;
fc = 2;
[psi,x] = cmorwavf(lb,ub,n,fb,fc);
plot(x, real(psi));
xlabel('time');
ylabel('ampl_real');
figure;
plot(x, imag(psi));
xlabel('time');
ylabel('amp_imag');