dbodehz.m
SYNTAX: [mag,phi,wout] = dbodehz(a,b,c,d,dt,iu,w)
PURPOSE: Bode frequency response for continuous-time linear systems.
BODE(A,B,C,D,dt,IU) produces a Bode plot from the single input IU to
all the outputs of the continuous state-space system (A,B,C,D).
IU is an index into the inputs of the system and specifies which
input to use for the Bode response. The frequency range and
number of points are chosen automatically.
INPUT:
a,b,c,d = system matrices
dt = sample time of discrete system
iu = input number
w = frequencies at which to calculate/plot freq. response (Hz)
OUTPUT:
bode plot of system, frequency in Hz
mag = magnitude of gain
phi = phase lag (degrees)
wout = frequencies (Hz) of mag, phi
RESTRICTIONS:
METHOD: Uses matlab dbode function (which has CRAPPY defaults)
See Also
bodehz
References
User Guide
Dependencies