Function Reference

Polynomial Manipulations

Evaluating Polynomials

polyval
Evaluate the polynomial at of the specified values for X.
polyvalm
Evaluate a polynomial in the matrix sense.

Finding Roots

roots
For a vector V with N components, return the roots of the polynomial
compan
Compute the companion matrix corresponding to polynomial coefficient vector C.

Products of Polynomials

conv
Convolve two vectors.
convn
N-dimensional convolution of matrices A and B.
deconv
Deconvolve two vectors.
conv2
Returns 2D convolution of A and B where the size of C is given by
polygcd
Find greatest common divisor of two polynomials.
residue
Compute the partial fraction expansion for the quotient of the polynomials, B and A.

Derivatives and Integrals

polyderiv
Return the coefficients of the derivative of the polynomial whose coefficients are given by vector C.
polyder
See polyderiv.
polyint
Return the coefficients of the integral of the polynomial whose coefficients are represented by the vector C.

Polynomial Interpolation

polyfit
Return the coefficients of a polynomial P(X) of degree N that minimizes the least-squares-error of the fit.
ppval
Evaluate piece-wise polynomial PP at the points XI.
mkpp
Construct a piece-wise polynomial structure from sample points X and coefficients P.
unmkpp
Extract the components of a piece-wise polynomial structure PP.

Miscellaneous Functions

poly
If A is a square N-by-N matrix, `poly (A)' is the row vector of the coefficients of `det (z * eye (N) - a)', the characteristic polynomial of A.
polyout
Write formatted polynomial c(x) = c(1) * x^n + .
polyreduce
Reduces a polynomial coefficient vector to a minimum number of terms by stripping off any leading zeros.