Coding wavelets the easy way

To load the file, type
>> load PieceRegSig
and return into the command window. If this does not work, make sure that the file is in the Matlab work folder. If you are familiar with Matlab, you can also fix the path of Matlab in order to include your download directory. You should now see a variable named sig in the workspace pane of Matlab, with length 1024. To plot the signal, enter the plot function under its command syntax in the command window:
>> plot(sig)
The result should look like this:
piecewisereg
This function is taken from Stéphane Mallat's book and can be recreated using the Wavelab toolbox for Matlab. It features not only singularities with integer order (like jumps), but also non integer Lipschitz singularities, i.e., the Lipschitz regularity drops pointwise to a non integer number. The definition of Lipschitz regularity is here.