MATLAB and Simulink Files

by

 

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

ch2p5.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.
%																												
% (ch2p5): We can find roots of polynomials using the roots(V) command. 
% The roots are returned as a column vector. For example, find the 
% roots of 5s^4+7s^3+9s^2-3s+2 = 0.

'(ch2p5)'                           % Display label.
P4=[5 7 9 -3 2]                     % Form 5s^4+7s^3+9s^2-3s+2 and 
                                    % display.	
rootsP4=roots(P4)                   % Find roots of 5s^4+7s^3+9s^2
                                    % -3s+2, 
                                    % assign to rootsP4, and display.     

Contact us