# accumproducts

Version:

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

## Syntax

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

## a

Vector, matrix, or array of any dimension.

## b

Dimension. b is an integer.

## 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