MATLAB script used to generate Figure 6 in the paper (instantaneous frequencies at maximum amplitudes of the average lightning waveforms plotted over the spectra well).