From: Venk Hariharan on
Hello,

I have an n x m x l matrix. I am trying to create a new matrix (same dimensions) with the same values for the n and m indices, but successively add the values in the 3rd index. For example, where the starting matrix has the values [l1, l2, l3,...] the new matrix should have [l1, l1+l2, l1+l2+l3,...]. Any ideas on how to accomplish this? Thanks.

-Harry
From: Matt Fig on
See the help for CUMSUM.