             error_flag = 1;
0190             error_str = [<span class="string">'Warning: Fewer than 10 recession segments extracted, results might not be robust. '</span>, error_str];
0191         <span class="keyword">end</span>
0192         
0193     <span class="keyword">case</span> <span class="string">'baseflow'</span>
0194         <span class="comment">% beginning of recession = point where baseflow filter rejoins the curve</span>
0195         <span class="comment">% (alternative needs basin area)</s