how to write a complex transfer function

조회 수: 14 (최근 30일)
John
John 2024년 2월 20일
댓글: Paul 2024년 2월 20일
how should i write followinG transfer function (tf) in the form of nuemrator and denominator in MATAB
-10.45 s^3 - 10.53 s^2 - 0.2246s
-----------------------------------------
s^2 + 1.2116 s - 0.1087 - 0.0909i
following is not working as it returns S^3 in the denominator, but i need s^2 in denominator :
numerator = [-10.45 -10.53 -.2246 0];
denominator = [0 1 1.2116 -.1087 -.0909j];
sys = tf(numerator,denominator);

채택된 답변

Sam Chak
Sam Chak 2024년 2월 20일
Ensure no space in .
numerator = [-10.45 -10.53 -.2246 0];
denominator = [0 1 1.2116 -.1087-.0909j];
sys = tf(numerator, denominator)
Warning: The numerator or denominator of this transfer function has complex-valued coefficients.
sys = -10.45 s^3 - 10.53 s^2 - 0.2246 s --------------------------------- s^2 + 1.212 s - (0.1087+0.0909i) Continuous-time transfer function.
  댓글 수: 2
John
John 2024년 2월 20일
Thanks, it worked
Paul
Paul 2024년 2월 20일
Or use commas to separate the array elements, then no need to worry about spacing
numerator = [-10.45 , -10.53 , -.2246 0];
denominator = [0 , 1 , 1.2116 , -.1087 - .0909j];
sys = tf(numerator, denominator)
Warning: The numerator or denominator of this transfer function has complex-valued coefficients.
sys = -10.45 s^3 - 10.53 s^2 - 0.2246 s --------------------------------- s^2 + 1.212 s - (0.1087+0.0909i) Continuous-time transfer function.

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

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Dynamic System Models에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by