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

fig7_71.m
%  Figure 7.71     Feedback Control of Dynamic Systems, 6e
%                        Franklin, Powell, Emami
% 
% script to generate Fig. 7.71(b)             
%  
clf;
f=-3;
h=1;
g=1;
j=0;
k=2;
l1=225;
l2=27;
acl=[f,-k,-1;l2,f-k-l2,0;l1,-l1,0];
bcl=[0 1;-l2 0;-l1 0];
ccl=eye(3);
dcl=0*ones(3,2);
t=0:.01:2;
uu=ones(size(t));
uu=[uu;uu];
uu(2,1:51)=0*ones(1,51);
syscl=ss(acl,bcl,ccl,dcl);
y=lsim(syscl,uu,t);
plot(t,y);
text(0.5,1.3,'y');
text(0.5,-.5,'$$\mathsf{\hat x}$$','interpreter','latex','FontSize',10,'FontName','Helvetica');
text(0.5,-2.8,'$$\mathsf{\hat \rho}$$','interpreter','latex');
title('Figure 7.71 (b): Command step response and disturbance step response');
xlabel('Time (sec)');
ylabel('y, $$\mathsf{\hat x}, \mathsf{\hat \rho}$$','interpreter','latex','FontSize',10,'FontName','Helvetica');
nicegrid;

Contact us