Wavelet in MATLAB is used to detect singular points