80     vel2    = dist2./delta_time_elapsed;
0081     
0082     <span class="comment">% Compute a threshold velocity based on the data</span>
0083     vel_threshold   = 1.5*(nanstd([dist1;dist2]) + nanmedian([dist1;dist2]))./<span class="keyword">...</span>
0084         (std(delta_time_elapsed) + median(delta_time_elapsed));
0085     suspect1        = (dist1&gt;vel_threshold);
0086     suspect2        = (dist2&gt;vel_threshold);
0087     
0088     <span class="comment">% Logical index of fly-aways</span>
008