ans =

Does it have an associated denominator polynomial in z?

3 views (last 30 days)

Show older comments

I need to input this into my Code.

John D'Errico
on 29 Mar 2024

Edited: John D'Errico
on 29 Mar 2024

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]

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.

Torsten
on 29 Mar 2024

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)

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)

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

Start Hunting!