tring">'omitnan'</span>);
0058 
0059 <span class="comment">% calculate baseflow</span>
0060 [Q_b, t_ind] = <a href="#_sub1" class="code" title="subfunction [Q_b, t_ind] = UKIH_Method(Q, n_days)">UKIH_Method</a>(Q_tmp, n_days); <span class="comment">% 5 is the default parameter</span>
0061 
0062 <span class="comment">% use minimum baseflow to fill in missing values at the beginning</span>
0063 B_tmp = min(Q_tmp)*ones(size(Q_tmp));
0064 B_tmp(t_ind) = Q_b;
0065 Q_b = B_tmp;
0066 
0067 <span class="comment">% 