i">2</span><span class="p">;</span>

<span class="n">lls</span> <span class="p">=</span> <span class="nb">zeros</span><span class="p">(</span><span class="n">numTrials</span><span class="p">,</span><span class="mi">2</span><span class="p">);</span>

<span class="k">for</span> <span class="n">trial</span> <span class="p">=</span> <span class="mi">1</span><span class="p">:</span><span class="n">numTrials</span>
<span class="c">% kmeans initialization</span>
<span class="n">startKMEANS</span> <span class="p">=