Two point difference
d = diff2(v) is the 2-point difference for each point in the vector v and the first element is zero. The vector d has the same length as v.
diff
© 1990-2012 Peter Corke.