How to get a sum of a series
이전 댓글 표시
Hello,
I need to get the sum of
Y(t)= A(i)*X(t-i)
where X is a vector of size (100,1). A is a vector of size (3,1)
i=0 to 2 and t= 3 to 100.
Any help is greatly appreciated.
Thanks
Dav
채택된 답변
추가 답변 (2개)
Muruganandham Subramanian
2014년 2월 20일
2 개 추천
Try using 'cumsum' command
David Young
2014년 2월 20일
편집: David Young
2014년 2월 20일
If you want the sum over i for each t, then it's
Y = conv(X, A, 'valid');
카테고리
도움말 센터 및 File Exchange에서 Mathematics and Optimization에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!