FIR Filter implementation through function

조회 수: 13 (최근 30일)
Saba Shafqat
Saba Shafqat 2016년 10월 8일
답변: Muhammad 2023년 9월 22일
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일
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

카테고리

Help CenterFile Exchange에서 Digital and Analog Filters에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by