Find all NaN in a vector and set them to Val
[sim, out] = ld_vector_NaNtoVal(sim, events, in, Val, vecsize)
in *+(vecsize) - input
out *+(vecsize) - output
Val - numeric parameter