Symbols in a transfer function:
이전 댓글 표시
Im trying to get a step response for a transfer function but having trouble implementing it in matlab.
H(s)=K/(t*s+1)
Code:
sym k
sym t
sys = tf(k,[t 1])
step(sys)
채택된 답변
추가 답변 (1개)
tf() is part of the Control System Toolbox, which is not designed at all to be able to use symbolic expressions.
The Control System Toolbox has no capacity to draw a family of plots -- the plots for all of the different shapes that can be generated by using different K and t values. K might be negative. K might be 0. t might be negative. K or t might be complex.
You can work symbolically, such as
syms k t s
sys = k/(t*s + 1)
isys = ilaplace(sys, s)
but the symbolic toolbox has no way to draw families of plots either.
댓글 수: 3
Paul
2023년 2월 11일
The Control System Toolbox has some capacity to draw a family plots where the user defines a parametric model and the values to use in the parametric model. For example, see this doc page.
Mixing t and s in an expression for a Laplace transform as in this Question is asking for nothing but trouble.
Walter Roberson
2023년 2월 11일
The Control System Toolbox has very limited capacity to work with systems with parameters in them. There is some capacity; see https://www.mathworks.com/matlabcentral/answers/305339-how-to-create-a-transfer-function-with-gain-k#answer_236890 . In each case, at any time the parameter is considered to have a specific value; the facilities that exist are there to make it easier to change the value of the parameter, potentially using automatic tuning.
Zain Ali
2023년 2월 11일
카테고리
도움말 센터 및 File Exchange에서 Time-Domain Analysis에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
