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

fig8_17.m
% Fig. 8.17   Feedback Control of Dynamic Systems, 4e 
%             Franklin, Powell, Emami
%

clear all;
close all;

numGs=1;
denGs=[1 0 0];  % s^2

% discrete design

T=1;
[numGz,denGz]=c2dm(numGs,denGs,T,'zoh');

numDz2=.374*[1 -.85];
denDz2=[1 0];

numz2=conv(numGz,numDz2);
denz2=conv(denGz,denDz2);
sysD=tf(numz2,denz2,T);
rlocus(sysD)
zgrid
axis([-1.5 1.5 -1.5 1.5])
axis('square')
title('Fig. 8.17 Compensated z-plane locus for 1/s^2 plant')
hold on
r=rlocus(sysD,1);
plot(real(r(1)),imag(r(1)),'k*',real(r(2)),imag(r(2)),'k*',real(r(3)),0,'k*')
text(.2,-1.3,'*  desired root locations')
ddamp(r',T)
hold off


Contact us