How do you use the cumprod function for the third dimension?
2 views (last 30 days)
Show older comments
I want to calculate the cumulative product of a stack of matrices, without using an iterative loop. The cumprod function can do this for dimension 1 and 2, but it it also somehow possible to apply such a function on the third dimension?
0 Comments
Accepted Answer
the cyclist
on 23 Jun 2012
Straight out of the documentation:
cumprod(X,DIM) works along the dimension DIM
More Answers (0)
See Also
Categories
Find more on Creating and Concatenating Matrices in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!