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

c# - passing input text from view to contoller with FacebookContext using Facebook app -

ios - Does Core Data autoupdate a many to many relationship on saving -

Calling a C++ function from C# by passing a string with variable size to it -