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

fig3_34.m
%  Figure 3.34      Feedback Control of Dynamic Systems, 6e
%                        Franklin, Powell, Emami
% script to generate Fig. 3.34

clf;
zeta =.5;
num=1;
k =1/zeta;
den1=[1 2*zeta 1];

a=100;
den2=[k/a 1];
den=conv(den1,den2);
t=0:.1:10;
y1=step(num,den,t);

a=5;
den2=[k/a 1];
den=conv(den1,den2);
y2=step(num,den,t);

a=2;
den2=[k/a 1];
den=conv(den1,den2);
y3=step(num,den,t);

a=1;
den2=[k/a 1];
den=conv(den1,den2);
y4=step(num,den,t);

plot(t,y1,'-',t,y2,'--',t,y3,'-.',t,y4,':');
title('Fig. 3.34 Step response with extra pole, \xi = 0.5');
xlabel('\omega_n t  ');
ylabel('y(t)');
text(.9,.9,'\alpha = 100');
text(2.5,.9,'5');
text(3.2,.9,'2');
text(4.5,.9,'1');
%grid
nicegrid;

Contact us