Matlab Transfer Function

  • #1

Main Question or Discussion Point

Hello

I need to do bode plot..

but i not to sure how to use matlab..

i need this 1 / (a + bs)s

num = 1
how to key in the den to get (a + bs)s..

i try different way and i can't get 1/(a+bs)s

hope to get help
 

Answers and Replies

  • #2
58
1
You can define vectors in descending powers of s, for both the numerator and the denomator:
ie, for s^3+5s+1, you would use :
den=[1 0 5 1], where the vector is made up of the coefficients of the polynomial in s.

Then, you use function tf to create the transfer function from the numerator and denominator created as described above. Then, you can invoke the bode function in Matlab to obtain the bode plot.

I don't remember if bode is part of the standard Matlab distribution or if it is part of a tool box....
In case it is not, you can do it yourself by substituting jw for s, and solving the complex math for the numerator and denominator and then taking the 20log of the numerator - 20log of the denominator for the different values of w.
 

Related Threads for: Matlab Transfer Function

Replies
3
Views
4K
Replies
3
Views
4K
Replies
2
Views
29K
  • Last Post
Replies
3
Views
477
  • Last Post
Replies
1
Views
2K
Replies
4
Views
532
  • Last Post
Replies
3
Views
1K
  • Last Post
Replies
7
Views
3K
Top