[psi,x] = mexihat(lb,ub,n)
returns the Mexican hat wavelet psi evaluated at x, an
n-point regular grid in the interval [lb, ub]. The
Mexican hat wavelet is also known as the Ricker wavelet.
The Mexican hat wavelet has the interval [-5, 5] as effective support. Nearly 100% of the
wavelet's energy is in the interval. Although [-5, 5] is the correct theoretical effective
support, a wider effective support, [-8, 8], is used in the computation to provide more accurate
results.
This function is proportional to the second derivative function of the Gaussian probability
density function.
Note
You can use gauswavf to obtain a second order derivative
of a Gaussian wavelet. If you use the negative of this normalized derivative, the resulting
wavelet resembles the Mexican hat wavelet.