MATLAB and Simulink Files

by

 

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

ch2p4.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.
%																													
% (ch2p4): An F(s) in factored form can be represented in polynomial form. 
% Thus P3 = (s+2)(s+5)(s+6) can be transformed into a polynomial using poly(V), 
% where V is a row vector containing the roots of the polynomial and poly(V) 
% forms the coefficients of the polynomial.

'(ch2p4)'                            % Display label.
P3=poly([-2 -5 -6])                  % Store polynomial
                                     % (s+2)(s+5)(s+6) as P3 and 
                                     % display the coefficients          

Contact us