# Matlab Wavelets discrepancy with Mexican hat and Gaussian ??

조회 수: 2 (최근 30일)
Paul C 2015년 4월 1일
답변: SHAOHAN WANG 2020년 12월 20일
Hi
I'm having a problem with the wavelets implemented in matlab, more precisely the Mexican Hat and the Gaussian order 2.
These two wavelets are supposed to be almost the same: The Mexh wavelet writes exp(-x^2/2)*(1-x^2) The Gaussian order 2 writes -exp(-x^2)*(1-2x^2).
Now, performing CWT with MEXH and GAUS2 on a given function yields very different results.
On the contrary, if I create a 'manual' 2nd derivative of the Mexican hat (I basically copy the mexh file, and add y=gradient(gradient(y)) at the end of it), it will give very close results to GAUS2.
I can't understand this when looking at the wavelet expressions. GAUS2 is supposed to be similar to MEXH, not 2d derivative of MEXH (which reads exp(-x^2)*(x^4-6x^2+3)). Is there an additional step in Matlab calculations that I am not aware of??

댓글을 달려면 로그인하십시오.

### 답변 (1개)

SHAOHAN WANG 2020년 12월 20일
did you solve the problem?
I am facing very similar situation

댓글을 달려면 로그인하십시오.

### 카테고리

Help CenterFile Exchange에서 Continuous Wavelet Transforms에 대해 자세히 알아보기

### Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by