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

fig9_06.m
%  Figure 9.6      Feedback Control of Dynamic Systems, 4e
%                        Franklin, Powell, Emami
%
% fig9_06.m is a script to generate Fig. 9.6        
%  frequency response for the PD design for the satellite   
clf;
% parameters for the two-mass spring model
m=[1 .1]; k0=[0 .091] ; d0=[0 .0036]; k1=[0 .4];

% call function
[f,g,h,j]=twomass(m,k0,d0);
nc1=0.25*[2 1];
dc1=[1/40 1];

% convert to state-space
[ac,bc,cc,dc]=tf2ss(nc1, dc1);

% series of controller and plant
[aol,bol,col,dol]= series(ac, bc,cc,dc,f,g,h,j);
[acl]=aol-bol*col;
w=logspace(-1,1);w(26)=1;
[magcl1, phcl1]= bode(aol,bol,col,dol,1,w);
subplot(211) ; 
loglog(w,[magcl1, ones(size(magcl1))]); 
xlabel('\omega (rad/sec)');
ylabel('Magnitude, |KD1(s)G(s)|');
title('Fig. 9.6 Frequency response for the satellite PD design')
grid
subplot(212);  
semilogx(w, [phcl1, -180*ones(size(phcl1))]); grid
xlabel('\omega (rad/sec)');
ylabel('Phase (deg)');

% 

Contact us