  cumsum
  Builtin Function



      SSyynnooppssiiss
        Cumulative sum.

      SSyynnttaaxx
        cumsum ( _A )

      DDeessccrriippttiioonn
        cumsum computes the running, or cumulative sum of a vector or
        matrix. The return object is a matrix the same size as the
        input, _A. If _A is a rectangular matrix, then the cumulative sums
        are performed over the columns of the matrix.

        Example:


          > a = 1:4
           a =
                  1          2          3          4
          > cumsum(a)
                  1          3          6         10
          > a= [1,2,3;4,5,6;7,8,9]
           a =
                  1          2          3
                  4          5          6
                  7          8          9
          > cumsum (a)
                  1          2          3
                  5          7          9
                 12         15         18





     SSeeee AAllssoo
        cumprod, prod, sum

























