フィルターのクリア

implementing direct form 2 without using filter command

6 ビュー (過去 30 日間)
s
s 2015 年 7 月 1 日
コメント済み: s 2015 年 7 月 2 日
x = randn(200,1);
for n = 9:length(x)
y(n) = 9*w(n)+w(n-1)+w(n-2)+33*w(n-3)+12*w(n-4)
w(n) = 2*w(n-1)-1.5*w(n-2)+0.9*w(n-3)-0.96*w(n-4)+x(n)
end
The above are the equations for direct form2 realisation of a transfer function.But it is throwing an error for variable w(n).what is the value of w(n) so that the error is removed.
  1 件のコメント
Jan
Jan 2015 年 7 月 1 日
編集済み: Jan 2015 年 7 月 1 日
I've formatted your code to make it readable. Please use the "{} Code" button.
Please post the error message, when you mention, that there is one. Letting us guess the error at first wastes time.

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

採用された回答

Jan
Jan 2015 年 7 月 1 日
編集済み: Jan 2015 年 7 月 1 日
Have you seen a working version of a direct form II implementation: http://www.mathworks.com/matlabcentral/answers/9900#answer_13623
  3 件のコメント
Walter Roberson
Walter Roberson 2015 年 7 月 1 日
"myFilter" is an implementation of direct form 2 that Jan has written and does not use the MATLAB "filter" command. You could name "myFilter" anything that is a valid MATLAB identifier, including
function [Y,z] = Supercalifragilisticexpialidocious(b, a, X, z)
s
s 2015 年 7 月 2 日
Thank you very much for the clarification...

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

その他の回答 (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