I have a randomly generated vector, say A of length M.
Say:
A = rand(M,1)
And I also have a function, X(k) = sin(2*pi*k).
How would I find Y(k) which is summation of A(l)*X(k-l) as l goes from 0 to M?
Assume any value of k… But the answer should be summation of all M+1 terms.
Given
Mandk, this is how you can perform your summation:EDIT: You could even create a function for
Ythat takeskandAas arguments: