MATLAB and Simulink Files

by

 

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

ch2ti9.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 2.9
% Use the following MATLAB and Symbolic Math Toolbox 
% statements to help you get Eq.(2.218)

'TryIt 2.9'
syms s J1 D1 K T J2 D2...
theta1 theta2
A=[(J1*s^2+D1*s+K) -K
    -K (J2*s^2+D2*s+K)];
B=[theta1
    theta2];
C=[T
    0];
B=inv(A)*C;
theta2=B(2);
'Theta2'
pretty(theta2)

Contact us