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

Java - Error: no suitable method found for add(int, java.lang.String) -

java - JPA TypedQuery: Parameter value element did not match expected type -

c++ - static template member variable has internal linkage but is not defined -