MATLAB Mastering Matlab for Bode Plots: Understanding Transfer Functions Easily

Click For Summary
To create a Bode plot in MATLAB for the transfer function 1 / ((a + b*s)*s), users need to define the numerator and denominator as vectors of coefficients in descending powers of s. For the given function, the numerator is simply [1], while the denominator can be represented as [1, 0, a, b]. The transfer function can be constructed using the 'tf' function, followed by invoking the 'bode' function to generate the plot. If the 'bode' function is not included in the standard MATLAB distribution, an alternative approach involves substituting jw for s, performing the necessary complex calculations, and using logarithmic transformations to plot the Bode plot manually.
onceinalifetim
Messages
38
Reaction score
0
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
 
Physics news on Phys.org
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.
 

Similar threads

  • · Replies 4 ·
Replies
4
Views
2K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 1 ·
Replies
1
Views
3K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 5 ·
Replies
5
Views
3K
  • · Replies 2 ·
Replies
2
Views
3K
  • · Replies 2 ·
Replies
2
Views
6K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 5 ·
Replies
5
Views
2K
  • · Replies 1 ·
Replies
1
Views
4K