an>
0085     <span class="keyword">if</span> ind5 &lt;= 2 <span class="comment">% need at least three minima</span>
0086     <span class="keyword">elseif</span>      Q_min5(ind5-1)*0.9 &lt; Q_min5(ind5-2) <span class="keyword">...</span>
0087             &amp;&amp;  Q_min5(ind5-1)*0.9 &lt; Q_min5(ind5) <span class="comment">% check if baseflow ordinate</span>
0088         TP(indTP) = Q_min5(ind5-1);
0089         t_TP(indTP) = i - n_days - 1 + min_i(ind5-1); <span class="comment">% get corresponding index</s