add comma for best practice
initialize Sx and Sy to actual 0 instead of matrix 0
use isa function instead of comparing class names
hide outputs of theory calculations
allow maximum of a specific number of grating lobes to be counted while finding beamwidth
returning index as 0 causes errors return 1
remove unnecessary lines
fix reversed use of indexes
use surf instead of mesh with interp shading
plot type 'line' instead of polar
put size in a variable
scratches scratches
external code sources found in internet