/span>
<span class="comment">% use bisection algorithm to solve the problem</span>
<span class="comment">%*********************************************************************</span>

halfbeam_bot = 1;
halfbeam_top = max_half_beam;

disp(<span class="string">'We are only considering integer values of the half beam-width'</span>)
disp(<span class="string">'(since we are sampling the angle with 1 degree resolution).'</span>)
disp(<span class="string">' '</span>)

<span class="keyword">while</span>( halfbeam_t