I am wondering what would be the equation for the Mexican hat wavelet defined by 'mexihat' function as its equation is not given in the discription. Not just this function, for some other functions also equations are not given.
I have done the following way, both are not equal and also I am unable to put [lb,ub] variables in the equation.
m=(1-(n/sigma).^2).*exp(-((n/sigma).^2)/2);
[m_r,x] = mexihat(-1,1,45);