cumprod
Symbolic cumulative product
Description
returns the cumulative product of B = cumprod(A)A starting at the beginning
of the first array dimension in A whose size does not equal 1.
The output B has the same size as A.
If
Ais a vector, thencumprod(A)returns a vector containing the cumulative product of the elements ofA.If
Ais a matrix, thencumprod(A)returns a matrix containing the cumulative products of each column ofA.If
Ais a multidimensional array, thencumprod(A)acts along the first nonsingleton dimension.
