I needed matlab code for cumulative sum of column vector
3 ビュー (過去 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)
参考
カテゴリ
Help Center および File Exchange で Get Started with MATLAB についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!