bodeplot
Bode plot of a SISO LTI system with plotting options.
📝Syntax
bodeplot(sys)
bodeplot(sys, opt)
bodeplot(sys, lineSpec)
bodeplot(sys, opt, lineSpec)
bodeplot(sys, w, ...)
[magnitude, phase, w] = bodeplot(...)
📥Input Arguments
Parameter Description
sys a SISO LTI model.
opt an options structure returned by bodeoptions.
lineSpec Line style, marker, and color.
w a cell {wmin, wmax} or a frequency vector.
📤Output Arguments
Parameter Description
magnitude Magnitude: size 1 x 1 x k (SISO).
phase Phase: size 1 x 1 x k (SISO).
w Frequencies: a vector: 1 x k.
📄Description

bodeplot(sys) generates a Bode plot of the SISO LTI system sys, like bode.

bodeplot(sys, opt) applies the plotting options described by opt (see bodeoptions).

When opt.PhaseUnits is 'rad', the phase is plotted in radians. When opt.Grid is 'on', a grid is displayed.

A lineSpec character vector and a frequency specification w can also be provided, as with bode.

💡Examples
G = tf([3], [1 1/2 4]);
opt = bodeoptions();
opt.PhaseUnits = 'rad';
opt.Grid = 'on';
f = figure();
bodeplot(G, opt, '--');
Example illustration
🔗See Also
bodebodeoptions
🕔Version History
Version Description
1.0.0 initial version
Edit this page on GitHub