ngth(idx)
0100             <span class="comment">% there are duplicates so no need to interpolate to higher resolution</span>
0101             keepgoing=0;
0102         <span class="keyword">else</span>
0103             <span class="comment">% increase interpolation to dI*2;</span>
0104             dI=dI*2;
0105             disp(<span class="string">'Increasing resolution of transect'</span>)
0106         <span class="keyword">end</span>
0107         idx= idx(sort(igood));
0108         checkelems={};
0109  