How to get a sum of a series
2 views (last 30 days)
Show older comments
dav on 20 Feb 2014
Answered: Muruganandham Subramanian on 20 Feb 2014
I need to get the sum of
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.
kjetil87 on 20 Feb 2014
t = 3:100;
sumY = sumY+sum(A(1+i)*X(t-i)) ;
More Answers (2)
David Young on 20 Feb 2014
Edited: David Young on 20 Feb 2014
If you want the sum over i for each t, then it's
Y = conv(X, A, 'valid');
Find more on Solver Outputs and Iterative Display in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!