필터 지우기
필터 지우기

Hi. I want creat a tranfer function have parameter,but i don't know how to do it.help me pls

조회 수: 1 (최근 30일)
a*s + 3
--------------
s^2 + b*s + c

채택된 답변

Robert U
Robert U 2017년 10월 6일
Hi super bad,
have a look into the matlab function "tf":
Kind regards,
Robert
  댓글 수: 4
Robert U
Robert U 2017년 10월 9일
Just saw the discussion below. My answer comprises a function file. Star Strider gave it already as anonymous function.
Kind regards,
Robert
Walter Roberson
Walter Roberson 2017년 10월 9일
MATLAB cannot create a transfer function that displays like
a s + 3
--------------
s^2 + b s + c
with literal characters 'a' and 'b' and 'c' showing up, except as a symbolic expression like Star Strider shows.
If particular numeric values are to be substituted, so it might for example show up as
5 s + 3
--------------
s^2 - 2 s + 17.1
then that can be done with the methods Robert or Star Strider show.

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

추가 답변 (2개)

Star Strider
Star Strider 2017년 10월 6일
If you are creating a ‘tunable’ system, see the documentation on the realp (link) function.
  댓글 수: 11
Star Strider
Star Strider 2017년 10월 6일
You never mentioned that as a specific requirement before.
What you want to do is not possible other than in the Symbolic Math Toolbox:
syms a b c s
sys = (a*s + 3)/(s^2 + b*s + c)
pretty(sys)
a s + 3
------------
2
s + b s + c
Stopping here.
Again, Good luck!

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


Walter Roberson
Walter Roberson 2017년 10월 7일

카테고리

Help CenterFile Exchange에서 Loops and Conditional Statements에 대해 자세히 알아보기

제품

Community Treasure Hunt

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

Start Hunting!

Translated by