Vector differentiation with respect to the index
[sim, out] = ld_vector_diff(sim, events, in, vecsize)
in *+(vecsize) - vector signal of size "vecsize"
out *+(vecsize-1) - vector signal of size "vecsize-1"
Equivalent to Scilab 'diff' function