How do I get a magnitude respons with frequency at the x-axis?
조회 수: 4 (최근 30일)
이전 댓글 표시
When I use the function freqz() I'll get a response with normalized frequency at the x-axis. Is there a way to get the freqency instead or optionally calculate it by hand?
댓글 수: 0
채택된 답변
Star Strider
2017년 10월 19일
Yes!
Supply the sampling frequency (here ‘Fs’) as an argument to freqz to get the plot in terms of actual frequency (from 0 Hz to the Nyquist frequency), where ‘NFFT’ is the length of the Fourier transform you want to use (a good choice being 2^16):
freqz(sos, NFFT, Fs)
or:
freqz(b, a, NFFT, Fs)
or others, depending on how you implemented your filter.
댓글 수: 2
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Digital Filter Analysis에 대해 자세히 알아보기
제품
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!