From 12:00 PM - 4:00 PM CST on Thursday, October 18, will be undergoing system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

Table Of Contents


    Last Modified: January 9, 2017

    Computes the product of inputs along the specific dimension.


    c = prod(a)
    c = prod(a, b)
    c = prod(a, b, d)



    Scalar or array of any dimension of numeric or Boolean values.


    Dimension along which to compute the product. b can be in a range of 1 to the maximum supported array dimension (32). If you do not assign a value to b, MathScript uses the first non-singleton dimension.


    Output data type.

    Name Description

    The output data type is double.


    The output data type is the same data type as the input data type.



    Product of a. c is an array of the same size as a, except for the dimension the function works on. The size for the working dimension of c is 1.

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

    Where This Node Can Run:

    Desktop OS: Windows

    FPGA: Not supported

    Recently Viewed Topics