Update calc_beamwidth.m