es</span>
0078 ind5 = 1; <span class="comment">% minima counter</span>
0079 TP = 0; <span class="comment">% turning points</span>
0080 t_TP = 0; <span class="comment">% corresponding time/index</span>
0081 indTP = 1; <span class="comment">% TP counter</span>
0082 
0083 <span class="keyword">for</span> i = 1:n_days:floor(n/n_days)*n_days <span class="comment">% divide in non-overlapping n-day blocks</span>
0084     [Q_min5(ind5), min_i(ind5)] = min(Q(i:i+(n_days-1))); <span class="comment">% find minimum</sp