mexihat

Generate a Mexican hat wavelet.

Syntax

psi = mexihat(lb, ub, n)

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

Inputs

lb
The lower bound.
Dimension: scalar
ub
The upper bound.
Dimension: scalar
n
The number of points.
Dimension: scalar

Outputs

psi
The Mexican hat wavelet values.
x
The grid values.

Example

Plot a Mexican hat wavelet.

lb = -5;
ub = 5;
n = 401;
[psi,x] = mexihat(lb,ub,n);
plot (x, psi);
xlabel('time');
ylabel('amplitude');
Figure 1. mexihat figure 1


Comments