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
Post a Comment