```
r_dB=20*log10(abs(r)/max(abs(r)));
for m=2:length(theta)
if (r_dB(m-1))>(-3)&&(r_dB(m))< (-3)
HPBW_degrees=2*(theta(m)-pi/2)*180/pi
end
end
```

]]>Happy that you liked my post!

One way to calculate HPBW is to vary theta and calculate the array response for each value of theta. Measure how many degrees you need to increase to get from peak array response to 3dB down and double it. That will give you Half Power Beam Width.

PS: You might need to take 20*log10(r) and not 10*log10(r).

Hope this helps.

YA

]]>1000 Watts/m^2 * 0.17 * 1.92 m^2 = 326.4 Watts

The area required for 30 kW can be calculated as follows.

30,000 Watts / 170 Watts/m^2 = 176 m^2

Hope this helps!

YA

]]>Great Article. Thank you so much for this. Please I wanted to ask how you were able to get the Half Power Beam width from your simulation (Code). I am trying to do that but I cannot seem to get it.

Thank you.

]]>How to create encoder to detect channel at decoder using Python. ]]>