Prev: How to increase the significant digits of a number at MATLAB
Next: neumann boundary condition in PDETOOL box
From: Venk Hariharan on 8 Jun 2010 20:28 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 8 Jun 2010 21:21
See the help for CUMSUM. |