function tau = addDelay(tau1,tau2)
% Adds delay vectors with NaNs.

%  Copyright 2023 The MathWorks, Inc.
NaN1 = isnan(tau1);
NaN2 = isnan(tau2);
tau1(NaN1 & ~NaN2) = 0;
tau2(NaN2 & ~NaN1) = 0;
tau = tau1+tau2;
