Department of Engineering

IT Services

Polynomials

Matlab stores polynomials as vectors. For example 2x2-3x+1 can be represented as

 
p = [2 -3 1]

Several operations on polynomials are available. To find the roots of p, for example, just type

 
roots(p)