Insert one element into a vector
[sim, out] = ld_insert_element(sim, events, in, pointer, vecsize )
in *+ - the input element signal
pointer * - the index signal
vecsize - length of output vector
out[pointer] = in, the first element is at pointer = 1