필터 지우기
필터 지우기

plotting the magnitude and phase response of a 3rd order low pass filter defined by the equation y(n)

조회 수: 11 (최근 30일)
Using MATLAB implement a code to plot the magnitude and phase response of a 3rd order low pass filter defined by the equation:
y(n) = 0.0181x(n)+0.0543x(n-1)+0.0543x(n-2)+0.0181x(n-3)+1.76y(n-1)-1.1829y(n-2)+0.2781y(n-3)

채택된 답변

Chunru
Chunru 2021년 8월 25일
% y(n) = 0.0181x(n)+0.0543x(n-1)+0.0543x(n-2)+0.0181x(n-3)+1.76y(n-1)-1.1829y(n-2)+0.2781y(n-3)
b = [0.0181 0.0543 0.0543 0.0181];
a = [1 -1.76 1.1829 -0.2781];
freqz(b, a, 1024);
  댓글 수: 3
Chunru
Chunru 2021년 8월 25일
편집: Chunru 2021년 8월 25일
n=1024 for number of frequency points in evaluating frequenct response. doc freqz for details.

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

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