shanwavf

Generate a complex Shannon wavelet.

Syntax

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

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

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.
Dimension: scalar

Outputs

psi
The complex Shannon wavelet values.
x
The grid values.

Example

Plot the real and imaginary components of a complex Shannon wavelet.

lb = -5;
ub = 5;
n = 401;
fb = 3;
fc = 2;
[psi,x] = shanwavf(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. Shannon real


Figure 2. Shannon imag


Comments