Calculate cumulative sum
x is a vector
Returns a vector y where y[i]=sum(x[<i])
x = 1:10
Add the following code to your website.
Copy to clipboard
For more information on customizing the embed code, read Embedding Snippets.