Dear all, I am trying to sum first 5 elements of column 1 of matrix m x n one after the other. Eg. say 1 2 3 4 5 6 then I want result as 1 3 6 10 15 21. After than I want to repeat the process again for m rows. Please help me with this. Regards, Suri
MATLAB: Conditional sum on particular column of a matrix
conditionsum
Related Question
- How to reshape a 2D to 3D matrix without using loops (reshape) and keeping a particular order of the elements// Wrong arragement of elemts after using “reshape”
- Remove all NaN values from an array.
- Reshape an array into another
- How to sort a matrix in a random order
- Shift rows by different amounts
- Repeating blocks of N rows M times
- Reshape 3d matrix to obtain a column vector
- How to rearrange data in matrix
Best Answer