Could you please solve the problem??

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

I got a previous answer, but it is not correct.... That's why i need otherways....
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.
Sorry,sir.... I meant i should do make it without filter.... This is a condition.... It is hard to explain exactly for expert....
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 ?
All right!!! I understand what you mean!!thank you~~
Lee Jae-yeon, please edit the question to make it readable.

Sign in to comment.

Answers (0)

Categories

Find more on Linear Algebra in Help Center and File Exchange

Tags

No tags entered yet.

Asked:

on 1 Dec 2011

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!