What does s = tf ('s') do?
古いコメントを表示
I am currently doing an exercise in PID control, the first line in the code is
s = tf ('s');
What does it do? according to Mathworks website:
sys = tf(M) creates a static gain M (scalar or matrix)
from what I know that tf is supposed to create a transfer function with a denominator and numerator. what does static gain mean?
採用された回答
その他の回答 (2 件)
Rik
2017 年 4 月 1 日
0 投票
You could think of this as something similar to uint8(5). It is a way to generate a variable with the correct data-type, so you can more easily manipulate it. Static gain in this case means that you have a transfer function that simply multiplies your input with a number and does nothing else.
1 件のコメント
Walter Roberson
2019 年 1 月 28 日
not really . the 's' is detected specially. The static gain situation only applies for numeric input.
Janakiraman S
2019 年 1 月 28 日
It creates a continuous time function of variable s (to be given as a text input in quotes) which can be used in defining transfer funtion models
Matlab code and result
s=tf('s')
s =
s
Continuous-time transfer function.
カテゴリ
ヘルプ センター および File Exchange で Transfer Function Models についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!