Convolution introduces NaNs I am performing convolution in MATLAB using the built in conv function. I am convolving an impulse response (length 500 samples)  with an 1800 sample long input signal. This input signal contains 450 NaNs at random indexes between sample 530 and 1285. The output signal of this convolution is length 2299, and now consists of 1255 NaNs.
I'm unsure why this happens, and how to avoid it?

I'm also not sure I've provided enough info, but if I can add anything else please let me know.
and how to avoid it?


Address the NaN in your input data. Don't "fix", "paper over it" or "replace by 0". Find the root cause for the NaN, understand what's happening and take meaningful corrective action. 

NaN means your input data is bad. Doing anything with bad data is pointless since your output will be bad. Doing cosmetic adjustment just so the code doesn't blow up is equally pointless. You need to understand why the data is bad and address the root cause