9;</span><span class="p">,</span><span class="mi">0</span><span class="p">)</span> <span class="p">;</span>

<span class="c">% a set of 2D pints</span>
<span class="n">X</span> <span class="p">=</span> <span class="n">single</span><span class="p">(</span><span class="nb">rand</span><span class="p">(</span><span class="mi">2</span><span class="p">,</span> <span class="mi">100</span><span class="p">))</span> <span class="p">;</span>

<span class="c">% build the kdtree</span>
<span class="n">kdtree</span> <spa