Add parameters in transfer function

조회 수: 6 (최근 30일)
John Blacksad
John Blacksad 2020년 4월 8일
답변: Star Strider 2020년 4월 8일
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일
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.

카테고리

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