//half power radiation pattern and beamwidth between first null //given clc Da=5//metre f=10d+9//hertz v=3d+8//m/s lemda=v/f//metre NNBW=140*(lemda/Da)//degree HPBW=70*(lemda/Da)//degree gp=6.4*(Da/lemda)^2//gain pattern gp_decibles=10*log10(gp)//changing to db gp_decibles=round(gp_decibles*1000)/1000///rounding off decimals disp(NNBW,HPBW,gp_decibles,'the half power beamwidth and beamwidth between first null and the gain pattern in degrees and decibles')//degree,db