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_32.m
%  Figure 7.32      Feedback Control of Dynamic Systems, 4e
%                        Franklin, Powell, Emami
%
% script to generate Fig. 7.32 
clf;
num = 40.4*[ 1, 0.619];
i=sqrt(-1);
r=[-3.21+4.77*i, -3.21-4.77*i];
den = poly(r);
den = [den, 0, 0];
w = logspace(-1,2);
[mag, ph] = bode(num,den,w);
mag1=[mag, ones(size(mag))];
subplot(211), loglog(w,mag1); grid on;
xlabel('\omega (rad/sec)');
ylabel('Magnitude');
title(' Fig. 7.32 Bode plot for the combined control and estimator');
ph1=[ph, -180*ones(size(ph))];
subplot(212) , semilogx(w,ph1); grid on;
xlabel('\omega (rad/sec)');
ylabel('Phase (deg)');

Contact us