o</span>
    Atar*w == 1;
    abs(As*w) &lt;= 10^(min_sidelobe/20);
cvx_end

<span class="comment">%********************************************************************</span>
<span class="comment">% plots</span>
<span class="comment">%********************************************************************</span>
figure(1), clf
plot(loc(:,1),loc(:,2),<span class="string">'o'</span>)
title(<span class="string">'Antenna locations'</span>)

<span class="comment">% plot array pattern</span>
y = A*w;

figure(2), cl