Cannot compute the following expression using "Symsum"

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개)

카테고리

도움말 센터File Exchange에서 2-D and 3-D Plots에 대해 자세히 알아보기

태그

질문:

2014년 10월 25일

답변:

2014년 10월 25일

Community Treasure Hunt

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

Start Hunting!

Translated by