フィルターのクリア

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.
Kritika Gupta
Kritika Gupta 2023 年 3 月 2 日
what is 1024 in freqz(nz,dz,1024*1024,600e3)

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeDigital Filter Analysis についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by