Could you please solve the problem??
Show older comments
Hello,expert!!! I have learnt "Convolution in signal and system... I should make a source the following question>>>>>>> X[n]*h[n] = [20cos(5πn+ π/3)+cos(200πn)] * 1/3 ( δ[n-2]+ δ[n-1]+ δ[n] ) {n is from 0 to 299}>>>>>>>I should show cosine graph by matlab! How to make a source which calculate the question .for example,>>>> y[0] = 1/3[20cos(5π0+ π/3)+cos(200π0)].......... y[1] = 1/3[20cos(5π0+ π/3)+cos(200π0)]+1/3[20cos(5π1+ π/3)+cos(200π1)]..........y[2] = 1/3[20cos(5π0+ π/3)+cos(200π0)]+1/3[20cos(5π1+ π/3)+cos(200π1)]+1/3[20cos(5π2+ π/3)+cos(200π2)]..........y[3] = 1/3[20cos(5π1+ π/3)+cos(200π1)]+1/3[20cos(5π2+ π/3)+cos(200π2)]+1/3[20cos(5π3+ π/3)+cos(200π3)]........ until y[301] = 1/3[20cos(5π299+ π/3)+cos(200π299)] δ[n] is the backward shift operator 5π(n-2) is 5*pi(n-2)*** This question cannot be used 'Filter'utility in Matlab....How to creat matlab source,expert???? Help me please!!!!
6 Comments
Lee Jae-yeon
on 1 Dec 2011
Jan
on 1 Dec 2011
Please, be so kind and explain, why the former answer is not correct. It wastes our and your time, if we guess, what the problem is. Why can FILTER not be used?
The "Markup help" link explains, how to format your code. currently your question is very hard to read.
Lee Jae-yeon
on 1 Dec 2011
Jan
on 1 Dec 2011
Instead of posting a question twice, it would be more helpful for the readers, if you append new information to the original question and accept only an answer, which solves the problem.
Does Hin Kwan Wong's answer produce the correct result in http://www.mathworks.com/matlabcentral/answers/22641-could-you-please-make-a-complete-code-about-the-following-question ?
Lee Jae-yeon
on 1 Dec 2011
Walter Roberson
on 1 Dec 2011
Lee Jae-yeon, please edit the question to make it readable.
Answers (0)
Categories
Find more on Linear Algebra 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!