op - halfbeam_bot &gt; 1)
  <span class="comment">% try to find a feasible design for given specs</span>
  halfbeam_cur = ceil( (halfbeam_top + halfbeam_bot)/2 );

  <span class="comment">% create optimization matrices for the stopband</span>
  ind = find(theta &lt;= (theta_tar-halfbeam_cur) | <span class="keyword">...</span>
             theta &gt;= (theta_tar+halfbeam_cur) );
  As = A(ind,:);

  <span class="comment">% formulate and solve the feasibility antenna array problem</span>
  cvx_begin <span clas