Extract a Bode Plot from a filter

조회 수: 49 (최근 30일)
Karl Rueth
Karl Rueth 2018년 5월 28일
댓글: Karl Rueth 2018년 5월 28일
I have this low pass filter and need to extract the bode plot of it.
[b,a]=butter(3,50/1000,'low');
freqz function isn't working, possibly because it's not a digital filter. Could someone guide me on how I can do it.
  댓글 수: 2
Geoff Hayes
Geoff Hayes 2018년 5월 28일
Karl - please clarify what you mean by freqz function isn't working. Are there errors or something else?
Karl Rueth
Karl Rueth 2018년 5월 28일
Yes it was, Freqs has to be used for analogue filters .. Thanks to Star Rider

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

채택된 답변

Star Strider
Star Strider 2018년 5월 28일
Use the Signal Processing Toolbox freqs (link) function for continuous filters, or freqz (linked to at the end of that documentation) for discrete filters. You can also get the amplitude and frequency outputs.
[b,a]=butter(3,50/1000,'low');
figure
freqs(b, a)
  댓글 수: 2
Karl Rueth
Karl Rueth 2018년 5월 28일
Thanks .. It worked
Star Strider
Star Strider 2018년 5월 28일
As always, my pleasure.

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

추가 답변 (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