I needed matlab code for cumulative sum of column vector
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
I needed matlab code for cumulative sum of column vector
0 Kommentare
Antworten (1)
Azzi Abdelmalek
am 27 Dez. 2014
Bearbeitet: Azzi Abdelmalek
am 27 Dez. 2014
yourarray=[1 2 3 4 5]
out=cumsum(yourarray)
5 Kommentare
Azzi Abdelmalek
am 27 Dez. 2014
Bearbeitet: Azzi Abdelmalek
am 27 Dez. 2014
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)
Siehe auch
Kategorien
Mehr zu Get Started with MATLAB finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!