FIR Filter implementation through function

Kindly provide the matlab code to solve the following question: Consider the following scenario: Let x[n] be the input to a non-causal FIR filter, with filter coefficients h[n]. Assume both the input values and the filter coefficients are stored in column vectors x, h and are given to you. Compute the output values y[n] for n = 1,2,3 where:

댓글 수: 1

Gautam Mohan
Gautam Mohan 2016년 10월 17일
Hi Saba,
Given that you have the filter coefficients and input values and the response is finite, I would suggest using the conv() function to calculate the filtered output of your signal.
Please see this documentation for more information:
https://www.mathworks.com/help/signal/ug/filter-implementation-and-analysis.html
Hope this helps!

댓글을 달려면 로그인하십시오.

답변 (1개)

Muhammad
Muhammad 2023년 9월 22일

0 개 추천

Let x[n] be the input to a non causal FIR filter, with filter coefficients h[n]. Assume both the input values and the filter coefficients are stored in column vectors x,h and are given to you. Compute the output values y[n] for n = 1,2,3 where     19 0 [ ] [ ] [ ] k y n h k x

카테고리

도움말 센터File Exchange에서 Digital and Analog Filters에 대해 자세히 알아보기

질문:

2016년 10월 8일

답변:

2023년 9월 22일

Community Treasure Hunt

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

Start Hunting!

Translated by