필터 지우기
필터 지우기

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

조회 수: 14 (최근 30일)
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

답변 (2개)

David Goodmanson
David Goodmanson 2018년 3월 18일
편집: David Goodmanson 2018년 3월 23일
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 2018년 3월 23일
try to split solution ; like
z1=solve(eqn,a0)
z2=solve(eqn,a1)
.... and so on

카테고리

Help CenterFile Exchange에서 Matrices and Arrays에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by