Search Contact information
University of Cambridge Home Department of Engineering
University of Cambridge >  Engineering Department >  computing help
next up previous
Next: Suppressing and controlling output Up: Getting started with Matlab Previous: Vectors and matrices

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)



© Cambridge University Engineering Dept
Information provided by Tim Love
2006-07-24