Hi there I have a nxm matrix. I want to do the cumsum of each column, then all of them added up to give one total cumsum.
Any help?
No products are associated with this question.
X = 1:100; X = reshape(X,10,10); X1 = cumsum(X(:));
Direct link to this answer:
http://www.mathworks.com/matlabcentral/answers/39405#answer_49015
Is this what you mean?
M = rand(5,6); S = sum(cumsum(M),2);
http://www.mathworks.com/matlabcentral/answers/39405#answer_49016
Contact us
0 Comments