MATLAB and Simulink Files

by

 

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

ch4ti5.m
% Nise, N.S. 
% Control Systems Engineering, 5th ed. 
% John Wiley & Sons, Hoboken, NJ, 07030
%
% Control Systems Engineering Toolbox Version 5.0 
% Copyright  2008 by John Wiley & Sons, Inc.

% TryIt 4.5
% Use the following MATLAB and Symbolic Math Toolbox
% statements to solve Skill-Assessment Exercise 4.9.

'TryIt 4.5'
syms s
A=[0 2;-3 -5];B=[0;1];
C=[1 3];X0=[2;1];
U=1/(s+1);
I=[1 0;0 1];
X=((s*I-A)^-1)*...
(X0+B*U);
Y=C*X;
Y=simplify(Y);
y=ilaplace(Y);
pretty(y)
eig(A)

Contact us