Hello, i have the following filters given to me:
FIR Filter:
y[n] = 0.4x[n]+0.3x[n−1]+0.2x[n−2]+0.1x[n−3]
IIR Filter:
y[n] = 0.5y[n − 1] − 0.1y[n − 2] + 0.3x[n] − 0.2x[n − 1] + 0.1x[n − 2]
I want to filter the following signal using these two filters with filter command
x[n] = cos(0.1πn) + cos(0.5πn) + cos(0.9πn)
Can you help me on this problem, i could not understand the filter command. Thanks in advance