Examples of matlab code can be found in this article http://www.mathworks.com/help/wavelet/examples/detecting-discontinuities-and-breakdown-points.html
also Steve Hanov in his paper describe method and gives source code in http://stevehanov.ca/cs698_wavelet_project.pdf