I needed matlab code for cumulative sum of column vector
1 次查看(过去 30 天)
显示 更早的评论
I needed matlab code for cumulative sum of column vector
0 个评论
回答(1 个)
Azzi Abdelmalek
2014-12-27
编辑:Azzi Abdelmalek
2014-12-27
yourarray=[1 2 3 4 5]
out=cumsum(yourarray)
5 个评论
Azzi Abdelmalek
2014-12-27
编辑:Azzi Abdelmalek
2014-12-27
Maybe you need this
yourarray=[1 2 3;4 5 6]
out=cumsum(yourarray,1)
%or
yourarray=[1 2 3;4 5 6]
out=cumsum(yourarray,2)
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!