In the previous section, several Bode diagrams were illustrated whose amplitude plots were obtained from hand-drawn straight-line asymptotic slopes and whose phase characteristics were calculated from the appropriate trigonometric fucntions. Additionally, several Bode diagrams were also illustrated which were obtained using MATLAB. In this section, the reader will be shown how to obtain the Bode diagrams very easily and accurately using MATLAB.
Let us practice creating Bode diagrams using MATLAB. There are many examples to practice with for creating Bode diagrams on the Modern Control System Theory and Design (MCSTD) Toolbox. Two functions exist that assist in Bode diagrams:
When trying to find the proper syntax to call the “bode” utility, either use the help feature or look in the reference manual. I personally prefer the help feature, unless I need an example.
Valid syntax for the “bode” utility, for transfer functions, is:
The left-hand arguments ...