Cannot compute the following expression using "Symsum"

1 Ansicht (letzte 30 Tage)
A P S
A P S am 25 Okt. 2014
Beantwortet: Zoltán Csáti am 25 Okt. 2014
B is a Vector which is 1 x 29 ......
I need a row vector which is [B(1), B(1)+B(2) , B(1)+B(2)+B(3) , ........ ]
I am using Symsum /// But i am getting error....

Akzeptierte Antwort

Zoltán Csáti
Zoltán Csáti am 25 Okt. 2014
Since B is a vector not a function, you can use cumsum. That is
a = cumsum(B);

Weitere Antworten (0)

Kategorien

Mehr zu 2-D and 3-D Plots finden Sie in Help Center und File Exchange

Tags

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by