">end</span>
0244     <span class="comment">%check speed thresholds in that zone</span>
0245     [s indx] = sort(speed_thresh,<span class="string">'ascend'</span>);
0246     <span class="keyword">if</span> (indx ~= [1:length(speed_thresh)])
0247         errordlg([<span class="string">'Speed thresholds for successive segments should be larger than previous segments.  Try Again!'</span>])
0248              <span class="keyword">return</span>;
0249     <span class="keyword">elseif</span> (~isempty(find(s &lt; 