Running product
Syntax: |
y = RPROD(x)
|
The RPROD
function only accepts a vector argument, and returns the running product
of the elements of that vector. The result is a vector.
Example
Suppose X = [1;2;3;4;5;6;7;8;9;10]
, then Y = RPROD(X)
returns vector
Y = [1;2;6;24;120;720;5040;40320;362880;3.6288e+06]
.