Creating transfer function with a variable gain "k"

148 ビュー (過去 30 日間)
Helge
Helge 2011 年 5 月 30 日
回答済み: Prajith S A 2022 年 8 月 22 日
Let's say we have a variable gain "k" in series with H(s)=(s*0.5-1)/(s*(s+1)^2), how may I get the complete transfer function with the variable K in matlab out of this? I don't want to use simulink.

回答 (4 件)

Robert
Robert 2016 年 10 月 1 日
This problem was never really solved and now i have the same one. How do you handle this? You create a transfer function with tf function but it does not allow for adding gain?
Makes no sense to me

Yamac Tan
Yamac Tan 2020 年 4 月 16 日
編集済み: Yamac Tan 2020 年 4 月 16 日
I have the same problem right now but I cannot find an exact solution. I have a closed loop negative feedback model with the static gain as "K" on the upper branch. I need to show "Input/Output = Transfer Function" with the variable "K". Still makes no sense.
  2 件のコメント
Paul Kroemer
Paul Kroemer 2020 年 10 月 29 日
I have the same Problem right now, so i wanted to ask if you found a solution for it? Thanks for your help.
Alpay Taskir
Alpay Taskir 2020 年 12 月 28 日
try to use command '' zpk'' guys.

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


Paulo Silva
Paulo Silva 2011 年 5 月 30 日
K=1:10
sys=K*H(s) %replace H(s) with your transfer function
sys(1) is your system with gain K=1 and so on until sys(10) -> K=10
you can also use functions like the step
step(sys) %this will plot your system response to a step for each gain K
  5 件のコメント
Paulo Silva
Paulo Silva 2011 年 5 月 30 日
If you have the symbolic toolbox take a look at this
http://www.mathworks.com/matlabcentral/answers/6355-how-do-i-get-the-coefficients-of-this-symbolic-expression
Paulo Silva
Paulo Silva 2011 年 5 月 30 日
For your example
syms K s
T=K*(1-s)/s^3+s^2+s+K
pretty(T)

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


Prajith S A
Prajith S A 2022 年 8 月 22 日
s = tf('s'); % Assign variable s, as variable of the transfer function
sys = (s+1)/(sˆ2+2*s+1)
s = zpk('s');
sys = (s+1)/(sˆ2+2*s+1) % Returns transfer function in factored form

カテゴリ

Help Center および File ExchangeStability Analysis についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by