Add parameters in transfer function

Hello, I need a transfer function like this: 1/(k_s*s^2+1)
But I get an error message and then I can't solve the feedback. How can I do it?
Thank you in advance.

1 件のコメント

Ameer Hamza
Ameer Hamza 2020 年 4 月 8 日
In MATLAB, the transfer function cannot have variable coefficients. Can you explain what are you trying to do?

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

回答 (1 件)

Star Strider
Star Strider 2020 年 4 月 8 日

0 投票

The ‘H’ transfer function and the feedback output function can be anonymous functions:
G = tf(1, [2 0 1])
H = @(k_s) tf(1, [k_s 0 1])
GH = @(k_s) feedback(G,H(k_s))
ks = 0.25;
step(GH(ks))
That runs without error in R2020a.

カテゴリ

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

製品

質問済み:

2020 年 4 月 8 日

回答済み:

2020 年 4 月 8 日

Community Treasure Hunt

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

Start Hunting!

Translated by