×
INTELLIGENT WORK FORUMS
FOR ENGINEERING PROFESSIONALS

Log In

Come Join Us!

Are you an
Engineering professional?
Join Eng-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Eng-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Jobs

from symbolic to tf_object

from symbolic to tf_object

from symbolic to tf_object

(OP)
hi
i have a polynomial expression: Q(s)=4*S^2+1, defined as “symbolic” but I need it as “tf-object” (defined as a transfer function) to be used in the matlab command "lsim", anyone knows how to do it?
thanks
gabi

RE: from symbolic to tf_object

I may be misunderstanding you're question, but here are some basics:

A transfer function is reprented by a numerator polynomial and denominator polynomial. A polynomial is a vector identifying the coefficients from highest order down to 0 order (constant)

For your example:
num = [4 0 1]
den = [1]
lsim(num,den,u,t)
(see help for u,t)

=====================================
Eng-tips forums: The best place on the web for engineering discussions.

RE: from symbolic to tf_object

(OP)
Actually I do want to use to function lsim, and that’s why I need to transform Q(s) [i.e.: Q(s)=4*s^2+1] from "sym-object" to "tf-object".
Why do I have Q(s) as a "sym-object"? well, i had to made several previous calculus and as I a have 3 variables y need to define s as symbolic

RE: from symbolic to tf_object

Try sym2poly or coeffs to return the polynomial coefficients, then follow electricpete's help above.

xnuke
"Do you think you used enough dynamite there, Butch?"
Please see FAQ731-376 for tips on how to make the best use of Eng-Tips.

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Eng-Tips Forums free from inappropriate posts.
The Eng-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Eng-Tips forums is a member-only feature.

Click Here to join Eng-Tips and talk with other members!


Resources