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

fig9_16.m
% Fig. 9.16   Feedback Control of Dynamic Systems, 6e 
%             Franklin, Powell, Emami
% script to generate figure 9.16
% using the general simulation nonlin
clf
N=0.1;
a=10/2;
r=0;
num=[1];
den=[1 .2 1 0];
nf=1;
df=1;
hold on
for k=1:2
   r=r+4;
   sim('nonsim',150)
   plot(yn(:,1),yn(:,2))
end
r=1;
sim('nonsim',150)
plot(yn(:,1),yn(:,2))
title('Figure 9.16 Simulation of a limit cycle')
xlabel('Time (sec)');
ylabel('Amplitude');
text(40,2,'r = 1')
text(70,5,'r = 4')
text(90,8.5,'r = 8')
nicegrid
hold off

Contact us