Vector gain
[sim, out] = ld_vector_gain(sim, events, in, gain, vecsize)
in *+(vecsize) - input
out *+(vecsize) - output