4.14. Summary
The chapter can be summarized as follows:
In MATLAB, a polynomial is represented by a row vector.
Polynomials are entered with coefficients of variable (say, s) arranged in descending order.
Only the coefficients of s terms are entered, i.e., variables s and s2 are not entered.
MATLAB can interpret a vector of length n + 1 as an nth order polynomial. Thus, if there are missing terms in a polynomial, zeros must be entered in the appropriate place in the vector.
A polynomial can be evaluated for a given value of variable say s by using the function polyval.
The roots of a polynomial can be found using the MATLAB function roots(p), where p is a row vector containing the coefficients of a polynomial.
Two polynomials, with same dimension, ...
Get MATLAB® and Its Applications in Engineering: [Based on MATLAB 7.5 (R2007b)] now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.