MATLAB code for analyzing E field spectra of dipole antennas with varying parameters