Is there a difference between fir1 and designfilt with bandpassfir?

조회 수: 4 (최근 30일)
Peter Bäuerle
Peter Bäuerle 2019년 12월 13일
답변: Sai Sri Pathuri 2020년 2월 25일
Dear all,
I want use a fir1 bandpass filter and found both methods, the option with fir1 and the one with designfilt combined with bandpassfir. Is there a marked difference between both options? Which one should I use?
I'm grateful for any clarification.
Thanks,
Peter
  댓글 수: 2
Star Strider
Star Strider 2019년 12월 13일
What is bandpassfir? I cannot find it in the online documentation.
I usually use kaiserord to design FIR filters.
Peter Bäuerle
Peter Bäuerle 2019년 12월 13일
If you look at the documentation for designfilt you find 'bandpassfir' as an option:
bpFilt = designfilt('bandpassfir','FilterOrder',20, ...
'CutoffFrequency1',500,'CutoffFrequency2',560, ...
'SampleRate',1500);
Well, obviously there are different ways to construct a fir filter. I also got the kaiserord and Fir1, but I can do witht he designfilt function as well....?

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

답변 (1개)

Sai Sri Pathuri
Sai Sri Pathuri 2020년 2월 25일
The fir1 function might be referred as a subset of designfilt function because designfilt has more options than fir1. The designfilt function can be used in the design of FIR and IIR filters with various design methods whereas fir1 is used in the design of FIR filters using least-squares (ls) approximation method.
You may refer following links for documentation:

카테고리

Help CenterFile Exchange에서 Digital Filter Design에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by