MATLAB and Simulink Files

by

 

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

ch2ti8.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.8
% Use the following MATLAB and Symbolic Math Toolbox statements to help you
% solve for the electrical currents in Eqs.(2.94)

'TryIt 2.8'
syms s I1 I2 I3 V
A=[(2*s+2) -(2*s+1) -1
    -(2*s+1) (9*s+1) -4*s
    -1 -4*s (4*s+1+1/s)];
B=[I1 
I2
I3];
C=[V
0
0];
B=inv(A)*C;
pretty(B)

Contact us