Transfer Function with one 1/s term

조회 수: 16 (최근 30일)
Joseph Lorentsen
Joseph Lorentsen 2020년 8월 6일
댓글: Joseph Lorentsen 2020년 8월 6일
I would like to represent a transfer function on MATLAB which includes one 1/s term, while the rest of the terms are 0 or positive exponent. Something like:
F=(1/s + s)/(s^2 + s +1).
The tf function can create a transfer function with all 0 or positive exponents, or one with all 0 and negative exponents, but not one which mixes them (as far as I can tell).
Does anyone know a way to represent such a transfer function in MATLAB?
If it helps, I'm hoping to use it with the nyquist function.
Thanks!

채택된 답변

Sulaymon Eshkabilov
Sulaymon Eshkabilov 2020년 8월 6일
Hi,
It is straightforward:
T = tf([1 0 1], [1 1 1 0]);
nyquist(T)
  댓글 수: 3
Les Beckham
Les Beckham 2020년 8월 6일
It is the same thing. Multiply the numerator and denominator by 1/s and you will see that it is the same. The control system toolbox doesn't like negative exponents. So, don't try to force it to use them.
Joseph Lorentsen
Joseph Lorentsen 2020년 8월 6일
Good point, I guess that's true. Thanks!

댓글을 달려면 로그인하십시오.

추가 답변 (1개)

Walter Roberson
Walter Roberson 2020년 8월 6일
You cannot do that with Control System Toolbox tf() function. tf() keeps numeric vectors of coefficients with implied powers; it does not store the powers explicitly and so cannot know that you want to use power of -1 . When you use calculations that might result in negative powers, it normalizes to a ratio of polynomials (each of which uses only positive powers.)
You can use the Symbolic Toolbox for your purpose of creating an object that will display that particular way. However, nyquist() does not accept symbolic objects, so you would have to code your own symbolic nyquist plot.
  댓글 수: 1
Joseph Lorentsen
Joseph Lorentsen 2020년 8월 6일
Ok. So I'm thinking, then, that the easiest solution will be to just enter in the tf multiplied by s on top and bottom, since I don't particularly care about the display of the transfer function (just the Nyquist plot). Thanks!

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 MATLAB에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by