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