Cannot compute the following expression using "Symsum"

1 回表示 (過去 30 日間)
A P S
A P S 2014 年 10 月 25 日
回答済み: Zoltán Csáti 2014 年 10 月 25 日
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....

採用された回答

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

その他の回答 (0 件)

カテゴリ

Help Center および File Exchange2-D and 3-D Plots についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by