Code covered by the BSD License  

Highlights from
Feedback Control of Dynamic Systems, 4th Ed., G. F. Franklin, J. D. Powell, A. Emami-Naeini

image thumbnail

Feedback Control of Dynamic Systems, 4th Ed., G. F. Franklin, J. D. Powell, A. Emami-Naeini

by

 

25 Apr 2003 (Updated )

.m and .mdl files for Feedback Control of Dynamic Systems

fig7_11.m
%  Figure 7.11      Feedback Control of Dynamic Systems, 4e
%                        Franklin, Powell, Emami
%
%
%fig7_11.m                                           
%
clf;
f=[0 1;-1 0];
g=[0;1];
h=[1 0];
K=[3 4];
fc=f-g*K;
gc=[4*g [1;0]];
hc=[h;[0 1]; -K/4];
jc=[0 0;0 0; 1 0];
t=0:.1:7;
sys=ss(fc,gc,hc,jc);
[y,t]=step(sys,t);
plot(t,y(:,:,1));
grid;
xlabel('Time (sec)');
ylabel('Amplitude');
text(1.5,.9,'x_1');
text(1.6,.3,'x_2');
text(1.5,.05,'u/4');
title('Fig. 7.11 Step response of the oscillator to a reference input');

Contact us