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

fig6_54.m
% Fig. 6.54   Feedback Control of Dynamic Systems, 4e 
%             Franklin, Powell, Emami
%

clear all;
close all;

k=10;
num=k;
den=[1 1 0];
w=logspace(-1,2,100);
[m,p]=bode(num,den,w);
num=conv(num,[.5 1]);
den=conv(den,[.1 1]);
[mc,pc]=bode(num,den,w);
figure(1)
loglog(w,m,w,mc);
grid;
xlabel('\omega (rad/sec)');
ylabel('magnitude');
title('Fig. 6.54 (a) magnitude');
figure(2)
semilogx(w,p,w,pc);
grid;
xlabel('\omega (rad/sec)');
ylabel('phase');
title('Fig. 6.54 (b) phase');

Contact us