Table Of Contents

difference

Version:
    Last Modified: March 15, 2017

    Computes the differences between the first order and higher orders of an array of any dimension.

    Syntax

    c = difference(a)
    c = difference(a, b)
    Legacy name: diff

    Inputs

    a

    Array of any dimensions.

    b

    Order of a to compare with the first order. b is an integer.

    Outputs

    c

    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: This product does not support FPGA devices


    Recently Viewed Topics