compare_systems.m
SYNTAX: [figure_num,mag1,phi1,mag2,phi2,f]= ...
compare_systems(system1, system2, figure_num, f)
PURPOSE: Compare input-output response of MIMO systems. Overlays bode
plots of 2 MIMO systems, 1-input and 1-output at a time to see if they
represent approximately the same input-output system.
INPUT:
system1 = first system, in Control Toolbox system format
system2 = second system, in Control Toolbox system format
figure_num = (optional) next figure number in sequence
f = frequency points(Hz) to plot bode plots at (optional, default
is f=w/(2*pi), with w calculated by bode function)
OUTPUT:
figure_num = next figure number in sequence
mag1,phi1 = frequency response for system 1, last input being viewed
mag2,phi2 = frequency response for system 2, last input being viewed
f = frequencies (Hz) corresponding to magi, phii
RESTRICTIONS: system1 and system2 must have the same number of inputs and
the same number of outputs.
Dependencies