herefore, we set NaN</span>
0052 <span class="comment">% values to median, apply the filter, and then set baseflow to NaN where</span>
0053 <span class="comment">% streamflow is NaN. If there are a lot of NaN values, we encourage the</span>
0054 <span class="comment">% user to either interpolate these values or to calculate the signature for</span>
0055 <span class="comment">% each block individually and then calculate a weighted average.</span>
0056 Q_tmp = Q;
0057 Q_tmp(isnan(Q)) = median(Q,<span class="s