Computes the differences between the first order and higher orders of an array of any dimensions.
c = difference(a)
c = difference(a, b)Legacy name: diff
Array of any dimensions.
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.
A = [2, 3, 5, 7, 11, 13, 17, 19, 23, 29, 31] C = difference(A, 2)
Where This Node Can Run:
Desktop OS: Windows
FPGA: Not supported