MATLAB script used to generate Figure 5a in the paper (instantaneous frequency plotted alongside amplitude of the signal).