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

fig9_44.m
% Fig. 9.44   Feedback Control of Dynamic Systems, 6e 
%             Franklin, Powell, Emami
%

% script to run the time optimal system
% and plot the results
r=4;
sim('tos_sim');
figure(2)
subplot(211) 
plot(utos(:,1),utos(:,2));
axis([0 6 -1.2 1.2]); grid on;
title('Control for the time optimal system');
xlabel('Time (sec)');
ylabel('u(t)');
subplot(212); plot(ytos(:,1),ytos(:,2));
axis([ 0 5 0 5]);
title('Output for the Time Optimal System');
xlabel('Time (sec)')
ylabel('y(t)')
nicegrid
hold off

Contact us