How do I rearrange this transfer function to be in negative powers of z using matlab?

15 visualizaciones (últimos 30 días)
I have this attached transfer function and I want to rearrange it into the standard form with negative powers of z. I wrote this code and it's not giving me values for the coefficients of z^-n like I'd hoped. Is there any way I can do this?
syms a0 a1 a2 a3 a4 b0 b1 b2 b3 b4 z
eqn=((b4*(z^-4)+b3*(z^-3)+b2*(z^-2)+b1*(z^-1)+b0)/(a4*(z^-4)+a3*(z^-3)+a2*(z^-2)+a1*(z^-1)+a0))==(2*(z^4)-5*(z^3)+13.48*(z^2)-7.78*(z)+9)/(4*(z^4)+7.2*(z^3)+20*(z^2)-0.8*(z)+8);
solve(eqn,[a0 a1 a2 a3 a4 b0 b1 b2 b3 b4])
It's just giving me a0=a0 etc

Respuestas (2)

David Goodmanson
David Goodmanson el 18 de Mzo. de 2018
Editada: David Goodmanson el 23 de Mzo. de 2018
Hi Zach, if you divide numerator and denominator by z^-4 you obtain
(2 -5*(z^-1) +13.48*(z^-2) -7.78*(z^-3) +9*(z^-4))/(4 +7.2*(z^-1) +20*(z^-2) -0.8*(z^-3) +8*(z^-4))
so
b0 = 2, b1 = -5, b2 = 13.48 etc.
a0 = 4, a1 = 7.2, a2 = 20 etc.

elham kreem
elham kreem el 23 de Mzo. de 2018
try to split solution ; like
z1=solve(eqn,a0)
z2=solve(eqn,a1)
.... and so on

Categorías

Más información sobre Mathematics en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by