필터 지우기
필터 지우기

Plotting frequency response from fdatool filter coefficients?

조회 수: 1 (최근 30일)
Dick Rusell
Dick Rusell 2014년 10월 18일
댓글: Star Strider 2014년 10월 18일
I created a 400 order bandpass fir filter using fdatool and exported the coefficients. How do I create the frequency response using the coefficients I just made?

채택된 답변

Star Strider
Star Strider 2014년 10월 18일
편집: Star Strider 2014년 10월 18일
The easiest way is to use the freqz function to display it. It will also calculate the frequency response and output it as a function of frequency. Use the phasez function for the phase.
  댓글 수: 2
Dick Rusell
Dick Rusell 2014년 10월 18일
so would it just be if Win was the variable for the coefficients:
Win = coefficients
Hd = freqz(Win, 1, omega);
like that?
Star Strider
Star Strider 2014년 10월 18일
That would work, with ‘omega’ being a vector of normalised frequencies, giving you the frequency response at those frequencies in ‘Hd’. Note that ‘Hd’ is a complex frequency vector, so you can calculate both amplitude and phase from it.

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

추가 답변 (0개)

카테고리

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

Community Treasure Hunt

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

Start Hunting!

Translated by