I'm fairly new to Matlab programming and am having difficulty expressing this equation on Matlab:
g(j)= ∑ (y(n)*x(n-j))
where the sum is from n = 8 to 10 for example.
The end result I want is a discrete function like:
g(j) = y(8)*x(8-j) + y(9)*x(9-j) + y(10)*x(10-j)
which I'll ultimately evaluate with a for loop at say j = 6 and 7.
x(n) and y(n) are defined from n=0,...,1000 by the way.
Anybody have any tips on how to accomplish this. This may be simple, but for some reason is giving me problems.
Thanks.
g(j)= ∑ (y(n)*x(n-j))
where the sum is from n = 8 to 10 for example.
The end result I want is a discrete function like:
g(j) = y(8)*x(8-j) + y(9)*x(9-j) + y(10)*x(10-j)
which I'll ultimately evaluate with a for loop at say j = 6 and 7.
x(n) and y(n) are defined from n=0,...,1000 by the way.
Anybody have any tips on how to accomplish this. This may be simple, but for some reason is giving me problems.
Thanks.