Code covered by the BSD License  

Highlights from
Feedback Control of Dynamic Systems, 6th Edition, Prentice-Hall, 2010

image thumbnail

Feedback Control of Dynamic Systems, 6th Edition, Prentice-Hall, 2010

by

 

MATLAB and Simulink files for the book, Feedback Control of Dynamic Systems, 6th Edition, 2010

fig6_55.m
% Fig. 6.55   Feedback Control of Dynamic Systems, 6e 
%             Franklin, Powell, Emami
%

clear all;
%close all;
clf

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,'--');
xlabel('\omega (rad/sec)');
ylabel('Magnitude');
title('Fig. 6.55 (a) magnitude');
bodegrid;
%pause;
figure(2)
semilogx(w,p,w,pc,'--');
xlabel('\omega (rad/sec)');
ylabel('Phase');
title('Fig. 6.55 (b) phase');
bodegrid;

Contact us