MATLAB and Simulink Files

by

 

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

ch7ti4.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 7.4
% Use MATLAB, the Symbolic Math Toolbox, and the
% following statements to find Se:a in Example 7.12.


'TryIt 7.4'
syms K a b s
G=K/((s+a)*(s+b));
Kp=subs(G,s,0);
e=1/(1+Kp);
Sea=(a/e)*diff(e,'a');
Sea=simple(Sea);
'Sea'
pretty(Sea)

Contact us