mexihat
Generate a Mexican hat wavelet.
Syntax
psi = mexihat(lb, ub, n)
[psi,x] = mexihat(...)
Inputs
- lb
- The lower bound.
- ub
- The upper bound.
- n
- The number of points.
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');