How do you use the cumprod function for the third dimension?
2 次查看(过去 30 天)
显示 更早的评论
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 个评论
采纳的回答
the cyclist
2012-6-23
Straight out of the documentation:
cumprod(X,DIM) works along the dimension DIM
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Creating and Concatenating Matrices 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!