フィルターのクリア

I need to input a matrix of size 2x2 which is something like this A= [ 1 - 1.8629z-1 + 0.8669z-2 , 0 ; 0 , 1 -1.8695z-1 + 0.8737z- 2 ] which is a 2x2 Matrix

3 ビュー (過去 30 日間)
Nithyaananth
Nithyaananth 2024 年 3 月 29 日
コメント済み: Nithyaananth 2024 年 3 月 29 日
I need to input this into my Code.
  2 件のコメント
Star Strider
Star Strider 2024 年 3 月 29 日
Does it have an associated denominator polynomial in z?
Nithyaananth
Nithyaananth 2024 年 3 月 29 日
Basically, the first matrix is the discretized transfer functions for a 2 input and 2 output system. Next to get A(z^-1) = [(den11)*(den12) 0; 0 (den21)*(den22)] this has to be done.

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

回答 (2 件)

John D'Errico
John D'Errico 2024 年 3 月 29 日
編集済み: John D'Errico 2024 年 3 月 29 日
So do it. What is the problem? If z is known, then just type it in, pretty much as written.
Do you know how to raise a number to a power? Actually, z^-1 is just 1/z, a far simpler way to write the power. For example:
z = 1.5;
A = [1-1.8629/z + 0.8669/z^2, 0; ...
0, 1 - 1.8695/z + 0.8737/z^2]
A = 2×2
0.1434 0 0 0.1420
<mw-icon class=""></mw-icon>
<mw-icon class=""></mw-icon>
If all of this seems foreign to you, then you STRONGLY need to start with the basics of MATLAB. Do the MATLAB Onramp. And there are other basic MATLAB tutorials to be found.
  1 件のコメント
Nithyaananth
Nithyaananth 2024 年 3 月 29 日
Z is not known here,
Basically, the first matrix is the discretized transfer functions for a 2 input and 2 output system. Next to get A(z^-1) = [(den11)*(den12) 0; 0 (den21)*(den22)] this has to be done.

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


Torsten
Torsten 2024 年 3 月 29 日
Define A as a function of z:
A = @(z)[1-1.8629*z,0;0,1-1.8695*z+0.8737*z^2];
A(2)
ans = 2x2
-2.7258 0 0 0.7558
<mw-icon class=""></mw-icon>
<mw-icon class=""></mw-icon>
or as a symbolic matrix
syms z A(z)
A(z) = [1-1.8629*z,0;0,1-1.8695*z+0.8737*z^2];
A(2)
ans = 

カテゴリ

Help Center および File ExchangeSymbolic Math Toolbox についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by