Creating transfer function with a variable gain "k"

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일

2 개 추천

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일

1 개 추천

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

I have the same Problem right now, so i wanted to ask if you found a solution for it? Thanks for your help.
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

Helge
Helge 2011년 5월 30일
Thanks for answering.
I understand you, but I want the final transfer function to be with K as an variable(constant) visible in the transfer funtion. For eksample T(s)= K(1-s)/s^3+s^2+s+K.
This is because i want to use the final transfer funtion to do further calculations manually.
So you want to find the K values that satisfy your project requirements?
Helge
Helge 2011년 5월 30일
Yes, I want to manualy set up an Routh Hurwitz table and solve the given transfer function with the variable K inside it. By completing the RH table i want to find out what K (gain) is requiered to design a stable system.
Because of this I need the complete transfer function including the constant K to solve the RH-table.
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
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일

0 개 추천

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

카테고리

도움말 센터File Exchange에서 Stability Analysis에 대해 자세히 알아보기

질문:

2011년 5월 30일

답변:

2022년 8월 22일

Community Treasure Hunt

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

Start Hunting!

Translated by