matlab - Sum value in array with pervious values and place it in new matrix -


I have an array [1; 2; 3; 4; 5]. I want to add every value with the previous values ​​and want to create a new array like this: [1; 3; 6; 10; 15] The real matrix is ​​bigger than this and has more than 2000 values.

You are looking for a function.

Comments

Popular posts from this blog

How can I add a seperate action listener to all 14 of my buttons at once that can determine player turn?(java) -

php - Sorting an multidimension array using usort fails -

Simple file compression in C -