필터 지우기
필터 지우기

How do I pass the signal through a low-pass FIR filter?

조회 수: 1 (최근 30일)
Zaref Li
Zaref Li 2021년 4월 28일
댓글: Star Strider 2021년 4월 29일
I have a string called the signal. I want to pass it through a low pass FIR filter very close to this signed ideal. How can I do it?
signal=1x732
signal=[-0.0029, 0.0117, 0.0068, ...,0.4467, 0.5054]

답변 (1개)

Star Strider
Star Strider 2021년 4월 28일
if ‘h’ are the numerator vector of the filter (and the filter is designed correctly) —
signal_filtered = filtfilt(h, 1, signal);
That should work.
  댓글 수: 2
Zaref Li
Zaref Li 2021년 4월 29일
How many should I write instead of h?
Star Strider
Star Strider 2021년 4월 29일
In this example, ‘h’ is a vector of coefficients returned by the funciton that designs the FIR filter (or that you calculate). How you design the filter is your choice, depeding on your reqquirements.

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

Community Treasure Hunt

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

Start Hunting!

Translated by