cumprodΒΆ
cumprod returns the cumulative product of each column of a matrix.
- rmCumprod = cumprod(rmMat)
Return Value
rmCumprod is a real matrix with cumulative products.
Parameters
- r
r is a real matrix.
Example
a = [1,2,3;
4,5,6;
7,8,9]
cumprod(a)
1.0000 2.0000 3.0000
4.0000 10.0000 18.0000
28.0000 80.0000 162.0000
History
Version |
Description |
---|---|
R2016 |
New. |
See also
id-2100504