MATLAB and Simulink Files

by

 

MATLAB and Simulink files for textbook Nise/Controls 6e.

ch12p6.m
% Nise, N.S. 
% Control Systems Engineering, 6th ed. 
% John Wiley & Sons, Hoboken, NJ, 07030
%
% Control Systems Engineering Toolbox Version 6.0 
% Copyright  2011 by John Wiley & Sons, Inc.
%
% (ch12p6) Example 12.8: We can design observer gains using the command 
% l = acker(A',C',poles)' without transforming to observer canonical form. Let us 
% look at Example 12.8 in the text.

'(ch12p6) Example 12.8'             % Display label.
A=[-5 1 0;0 -2 1;0 0 -1];           % Define system matrix A.
B=[0;0;1];                          % Define input matrix B.
C=[1 0 0];                          % Define output matrix C.
D=0;                                % Define matrix D.
poles=roots([1 120 2500 50000])     % Specify pole placement for all 
                                    % poles.
l=acker(A',C',poles)'               % Calculate observer gains.

Contact us