Mastering Matlab for Bode Plots: Understanding Transfer Functions Easily

Click For Summary
SUMMARY

This discussion focuses on creating Bode plots in MATLAB using transfer functions. The user seeks assistance in defining the transfer function 1 / ((a + bs)s) and learns to represent the denominator as a vector of coefficients, such as den = [1 0 5 1] for s^3 + 5s + 1. The transfer function is constructed using the tf function, followed by the bode function to generate the plot. It is noted that the bode function may not be included in the standard MATLAB distribution, and an alternative method involves substituting jw for s and performing manual calculations.

PREREQUISITES
  • Familiarity with MATLAB programming environment
  • Understanding of transfer functions in control systems
  • Knowledge of polynomial representation in MATLAB
  • Basic concepts of Bode plots and frequency response analysis
NEXT STEPS
  • Learn how to use the MATLAB tf function for transfer function creation
  • Research the MATLAB bode function and its toolbox requirements
  • Explore manual methods for generating Bode plots using complex frequency substitution
  • Study polynomial coefficient representation in MATLAB for various orders
USEFUL FOR

Control engineers, MATLAB users, students in engineering disciplines, and anyone interested in mastering Bode plots and transfer function analysis in MATLAB.

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
3K
  • · Replies 5 ·
Replies
5
Views
4K
  • · Replies 2 ·
Replies
2
Views
3K
  • · Replies 2 ·
Replies
2
Views
6K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 5 ·
Replies
5
Views
3K
  • · Replies 1 ·
Replies
1
Views
4K