Table Of Contents

accumproducts

Version:
    Last Modified: March 15, 2017

    Computes the cumulative products of vectors, matrices, and arrays of any dimension.

    Syntax

    c = accumproducts(a)
    c = accumproducts(a, b)
    Legacy name: cumprod

    Inputs

    a

    Vector, matrix, or array of any dimension.

    b

    Dimension. b is an integer.

    Outputs

    c

    Cumulative products of a. c is the same size as a. c returns the cumulative products of elements along dimension b. If you omit b, MathScript uses the first non-singleton dimension.

    A = [1:1:15]
    C = accumproducts(A)

    Where This Node Can Run:

    Desktop OS: Windows

    FPGA: This product does not support FPGA devices


    Recently Viewed Topics