필터 지우기
필터 지우기

How to defined a transfer function which includes letters and numbers

조회 수: 24 (최근 30일)
Halil
Halil 2016년 9월 14일
댓글: Walter Roberson 2016년 9월 14일
I need to draw the bode diagram of a transfer function:
L(s)=C*(1+ms)/(1+ns) where m and n are positive. My problem is that I didnt creat transfer function on MATLAB because of m and n variables. It gives me the error. How can I solve that problem. Thanks in advance

답변 (2개)

Walter Roberson
Walter Roberson 2016년 9월 14일
편집: Walter Roberson 2016년 9월 14일

Halil
Halil 2016년 9월 14일
편집: Walter Roberson 2016년 9월 14일
Thank you so much for your link but I didnt find the answer. If I put this code:
MySys=tf([9 0.2 1],[1 1.2 9 0])
bode(MySys)
I get this answer:
Transfer function:
9 s^2 + 0.2 s + 1
-------------------
s^3 + 1.2 s^2 + 9 s
that is what I need
If I put another code, I get the error:
syms C m n
MySys=tf(C*[m 1],[n 1])
bode(MySys)
??? Error using ==> tf.tf>tf.tf at 287
The values of the "num" and "den" properties must be row vectors or cell arrays of row
vectors, where each vector is nonempty and containing numeric data. Type "help tf.num"
or "help tf.den" for more information.
Error in ==> hw12 at 12
MySys=tf(K*[b 1],[a 1])
  댓글 수: 1
Walter Roberson
Walter Roberson 2016년 9월 14일
That might not work until you have substituted in definite values for all except one of the variables, though.
You are unlikely to be able to get a frequency response plot from a transfer function that involves variables other than the one one (such as s): the closest you would be able to get would be to substitute in specific values for those variables and plot that.

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

카테고리

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

Community Treasure Hunt

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

Start Hunting!

Translated by