Computes the differences between the first order and higher orders of an array of any dimensions.
c = difference(a)
c = difference(a, b)
Order of a to compare with the first order. b is an integer.
Differences between the first order and the b order of a. If a is a matrix or an array of higher dimensions, c returns row-wise differences. c is a vector or matrix.