How to use filter() if I don't have the transfer function?
2 次查看(过去 30 天)
显示 更早的评论
I have been provided with an impulse response h (vector of length 3) and an input signal x (vector of length 10).
I need to use the filter() function to perform FIR filtering on the input, but the function requires a transfer function as arguments:
From the documentation:
"y = filter(b,a,x) filters the input data x using a rational transfer function defined by the numerator and denominator coefficients b and a."
How do I get values for a and b so that I can use the function?
0 个评论
采纳的回答
Mathieu NOE
2021-5-17
hello
you have a FIR filter , and in that case the numerator b is equal to the h impulse response coefficients
the denominator a is equal to 1
2 个评论
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Digital Filter Design 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!