cmorwavf

Generate a complex Morlet wavelet.

Syntax

psi = cmorwavf(lb, ub, n, fb, fc)

[psi,x] = cmorwavf(...)

Inputs

lb
The lower bound.
Dimension: scalar
ub
The upper bound.
Dimension: scalar
n
The number of points.
Dimension: scalar
fb
The frequency bandwidth parameter.
Dimension: scalar
fc
The center frequency. (default: 1000 Hz)
Dimension: scalar

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');
Figure 1. Morlet real


Figure 2. Morlet imag


Comments