transfer functions arithmetic - is it distributive?

조회 수: 2 (최근 30일)
Kapil
Kapil 2019년 11월 11일
답변: David Goodmanson 2019년 11월 11일
I am using control toolbox for the first time and going through some of the documentation it seems like (h1*K1 + h1*h2*K2) and h1*(K1 + h2*K2) should give me the same resultant transfer function. I get two different transfer functions. I think I am missing something but dont know what. Can you help?
>> h1*(Kf1 + h2*Kf2)
ans =
From input to output "d":
0.06665 z - 0.0485
------------------
z^2 - 2 z + 1
>> (h1*Kf1) + (h1*h2*Kf2)
ans =
From input to output "d":
0.06665 z^2 - 0.1151 z + 0.0485
-------------------------------
z^3 - 3 z^2 + 3 z - 1
  댓글 수: 1
Steven Lord
Steven Lord 2019년 11월 11일
Can you show us the code you used to define the variables h1, Kf1, h1, h2, and Kf2?
Can you also confirm that none of those variables were changed between those two lines of code?

댓글을 달려면 로그인하십시오.

답변 (1개)

David Goodmanson
David Goodmanson 2019년 11월 11일
Hi Kapil,
The second expression is merely the first expression multiplied by (z-1)/(z-1). So the two are equivalent, with the second expression lacking some factorization & cancellation.

카테고리

Help CenterFile Exchange에서 Get Started with MATLAB에 대해 자세히 알아보기

제품


릴리스

R2018b

Community Treasure Hunt

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

Start Hunting!

Translated by