M-File Help: diff2 View code for diff2

diff2

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.

See also

diff


 

© 1990-2012 Peter Corke.