% Ben Shores
% Mechatronics II -- Spring 2004
%
% Script used to generate the second order characteristics figure for the
% lab procedure.
%
% =========================================================================
% Define the Natural Frequency and Damping Ratio
wn   = 10; % radians/s
zeta = .25;
%
% Define a Second-Order Transfer function.
num = [wn^2];
den = [1, 2*zeta*wn, wn^2];
T = tf(num,den);
%
% Plot the Step Response of the Second Order System
step(T)