Categories &

Functions List

Function Reference: bode

Function File: bode (sys)
Function File: bode (sys1, sys2, …, sysN)
Function File: bode (sys1, sys2, …, sysN, w)
Function File: bode (sys1, 'style1', …, sysN, 'styleN')
Function File: [mag, pha, w] = bode (sys)
Function File: [mag, pha, w] = bode (sys, w)

Bode diagram of frequency response. If no output arguments are given, the response is printed on the screen. In the latter case, the chidlren of the figure handle are the handles for (1) the phase plot, (2) the legend, and (3) the magnitude plot. The magnitude plot is the active handle after the bode plot is finished.

Inputs

sys

LTI system. Must be a single-input and single-output (SISO) system.

w

Optional vector of frequency values. If w is not specified, it is calculated by the zeros and poles of the system. Alternatively, the cell {wmin, wmax} specifies a frequency range, where wmin and wmax denote minimum and maximum frequencies in rad/s.

’style’

Line style and color, e.g. ’r’ for a solid red line or ’-.k’ for a dash-dotted black line. See help plot for details.

Outputs

mag

Vector of magnitude. Has length of frequency vector w.

pha

Vector of phase. Has length of frequency vector w.

w

Vector of frequency values used.

See also: nichols, nyquist, sigma

Source Code: bode

Example: 1

 

 G = tf ([10 1],[1 0.1 1 0]);
 bode(G);

                    
plotted figure