MATLAB script used to generate Figure 1b in the paper (spectra of the average waveforms of negative lightning discharges).