pan class="comment">%   minimize   max |y(theta)|     for theta outside the beam</span>
<span class="comment">%       s.t.   y(theta_tar) = 1</span>
<span class="comment">%</span>
<span class="comment">% where y is the antenna array gain pattern (complex function) and</span>
<span class="comment">% variables are w (antenna array weights or shading coefficients).</span>
<span class="comment">% Gain pattern is a linear function of w: y(theta) = w'*a(theta)</span>
<span class="comment">% for some a(theta) desc