Extract one element of a vector
[sim, out] = ld_extract_element(sim, events, invec, pointer, vecsize )
invec *+ - the input vector signal
pointer * - the index signal (indexing starts at 1)
vecsize - length of input vector
out = invec[pointer], the first element is at pointer = 1