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_34.m
% Fig. 6.34   Feedback Control of Dynamic Systems, 4e 
%             Franklin, Powell, Emami
%

clear all;
close all;

num=1;
den=conv([1 0],[1 2 1]);
w=logspace(-1,2,100);
[m,p]=bode(num,den,w);
subplot(2,1,1)
loglog(w,m,w, ones(size(w)));
axis([.1 100 .0001 10])
grid;
ylabel('magnitude');
title('Fig. 6.34 GM and PM from Bode Plot (a) magnitude');
subplot(2,1,2)
semilogx(w,p,w,-180*ones(size(w)));
grid;
xlabel('\omega (rad/sec)');
ylabel('phase(deg)');
title('(b) phase');

Contact us