MATLAB and Simulink Files

by

 

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

ch3ti1.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.

% TryIt 3.1
% Use the following MATLAB statements to form an LTI
% state-space representation from the transfer function
% shown in Figure 3.12(a). The A matrix and B vector are
% shown in Eq. (3.63). The C vector is shown in Eq. (3.67).

'TryIt 3.1'
num=[1 7 2];
den=[1 9 26 24];
[A,B,C,D]=tf2ss...
    (num,den);
P=[0 0 1;0 1 0;1 0 0];
A=inv(P)*A*P
B=inv(P)*B
C=C*P

Contact us