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_35.m
% Fig. 6.35   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,1,100);
[m,p]=bode(num,den,w);
subplot(2,1,1),loglog(w,m,w,ones(size(w)),w,2*ones(size(w)));
grid;
ylabel('Magnitude');
title('Fig. 6.35 PM versus K from the frequency response data.');
subplot(2,1,2),semilogx(w,p,w,-180*ones(size(w)));
grid;
xlabel('\omega (rad/sec)');
ylabel('Phase (deg)');

Contact us