Code covered by the BSD License  

Highlights from
Feedback Control of Dynamic Systems, 6th Edition, Prentice-Hall, 2010

image thumbnail

Feedback Control of Dynamic Systems, 6th Edition, Prentice-Hall, 2010

by

 

MATLAB and Simulink files for the book, Feedback Control of Dynamic Systems, 6th Edition, 2010

fig2_15.m
% Fig. 2.15   Feedback Control of Dynamic Systems, 6e 
%             Franklin, Powell, Emami
%

clear all;
close all;

g=9.81;     % m/sec^2
L=1;        % m 
m=1;        % Kg
r2d=57.295; % radians to degrees

num = 1/(m*L^2);
den = [1 0 g/L];
t=0:.02:10;

y = step(num,den,t);  % output in radians
plot(t,r2d*y),grid
xlabel('Time (sec)')
ylabel('Pendulum angle \theta (deg)')
title('Fig. 2.15')
nicegrid

Contact us