set baseflow to NaN where streamflow is NaN</span>
0068 Q_b(isnan(Q)) = NaN;
0069 
0070 <span class="keyword">end</span>
0071 
0072 <a name="_sub1" href="#_subfunctions" class="code">function [Q_b, t_ind] = UKIH_Method(Q, n_days)</a>
0073 <span class="comment">%UKIH_Method Helper function that runs the UKIH method.</span>
0074 
0075 n = length(Q);
0076 Q_min5 = NaN(round(n/n_days),1); <span class="comment">% 5 day minima</span>
0077 min_i = NaN(round(n/n_days),1); <span class="comment">% corresponding indic