O'Reilly logo

MATLAB® and Its Applications in Engineering: [Based on MATLAB 7.5 (R2007b)] by Manoj Kumar Sharma, Ashok Kumar Goel, Raj Kumar Bansal

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

12.11. Plotting Bode Diagrams

The commands used to plot the Bode diagrams of LTI systems in MATLAB are

bode(n,d)
bode(sys)

where

n and d are polynomials representing numerator and denominator of the given transfer function, and sys is an LTI model of the system, created with either tf, zpk or ss functions as described earlier in this chapter.

The frequency range and number of points are automatically selected.

Another similar command is

bode (n, d, ω)

where ω specifies the user-defined frequency range in rad/sec.

When the output response values are to be stored separately in matrices, then the following command with left-hand arguments and frequency vector is used:

[mag, phase, ω]= bode (n , d, ω)

This command will not generate any plot. ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required