Hi. I want creat a tranfer function have parameter,but i don't know how to do it.help me pls
1 view (last 30 days)
Show older comments
a*s + 3
--------------
s^2 + b*s + c
0 Comments
Accepted Answer
Robert U
on 6 Oct 2017
Hi super bad,
have a look into the matlab function "tf":
Kind regards,
Robert
4 Comments
Robert U
on 9 Oct 2017
Just saw the discussion below. My answer comprises a function file. Star Strider gave it already as anonymous function.
Kind regards,
Robert
Walter Roberson
on 9 Oct 2017
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.
More Answers (2)
Star Strider
on 6 Oct 2017
11 Comments
Star Strider
on 6 Oct 2017
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
on 7 Oct 2017
Please post the actual question, including any requirements as to version restrictions or toolbox restrictions.
0 Comments
See Also
Categories
Find more on Loops and Conditional Statements in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!