Hello everyone , need help about writing a transfer function . I know how we normally write the code for it but know i'm not able do it correctly.Always getting different errors

 採用された回答

Star Strider
Star Strider 2022 年 2 月 26 日

0 投票

MATLAB does not recognise implicit multiplication.
Be sure to include multiplication operators (*) when you code ‘G’ just after your initial tf call.

5 件のコメント

Walter Roberson
Walter Roberson 2022 年 2 月 26 日
Hint:
s = tf('s')
and after that you can just code the expression, making sure to use * for multiplication
Star Strider
Star Strider 2022 年 2 月 26 日
@Walter RobersonThank you!
Ahmet Cavit  Dastan
Ahmet Cavit Dastan 2022 年 2 月 26 日
thank you but still getting different errors ,even with trying sys(s) instead of G(s) , can you check it ?
  1. sys(s)= (s^2+3s+10)(s+5)/(s+3)(s+4)(s^2+5*s+100)
  2. s = tf ('s')
Walter Roberson
Walter Roberson 2022 年 2 月 26 日
編集済み: Walter Roberson 2022 年 2 月 27 日
s = tf('s')
s = s Continuous-time transfer function.
sys = ((s^2+3*s+10)*(s+5)) /((s+3)*(s+4)*(s^2+5*s+100))
sys = s^3 + 8 s^2 + 25 s + 50 ------------------------------------- s^4 + 12 s^3 + 147 s^2 + 760 s + 1200 Continuous-time transfer function.
Star Strider
Star Strider 2022 年 2 月 26 日
... and again!

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

ヘルプ センター および File ExchangeControl System Toolbox についてさらに検索

製品

リリース

R2019a

Community Treasure Hunt

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

Start Hunting!

Translated by