Financial Time Series Toolbox    
cumsum

Cumulative sum

Syntax

Description

newfts = cumsum(oldfts) calculates the cumulative sum of each individual time series data series in the financial time series object oldfts and returns the result in another financial time series object newfts. newfts contains the same data series names as oldfts.

Examples

Compute the cumulative sum for Disney stock and plot the results:

See Also

cumsum in the MATLAB documentation


  convertto diff