Evo8
- 168
- 0
Homework Statement
The problem statement essentially has me inputing a signal into simulink manipulating it and then looking at the output.
My output function is defined as $$y(n)=0.8x(n)+0.5x(n-1)+0.2x(n-2)$$
Homework Equations
N/A
The Attempt at a Solution
In my simulink canvas I have placed a sine wave as my source and a scope as the sink or output.
To implement this function i tried the block called discrete filter. I have connected them in series respectively.
When I open the parameters for the filter i have fields for numerator and denominator coefficients. So I took my Y(n) and calculated the z transform then found my H(z).
y(n)=0.8x(n)+0.5z^{-1}x(n)+0.2z^{-2}x(n)
y(n)=x(n)(0.8+0.5z^{-1}+0.2z^{-2})
H(z)=0.8+0.5z^{-1}+0.2z^{-2}
So i put the coefficents into my filter parameters.
Numerator was [0.8 0.5 0.2]
Denominator was [1]
My input sine wave was left at the default of 1amplitude and 1 rad/sec.
My input and parameters:
This is what my output looks like.
Am I on the right track here? I am not really sure what my expected outcome should be.
Thanks for any help.