vander

Purpose

Vandermonde matrix.

Synopsis

V = vander(x)

Description

V = vander(x) returns the Vandermonde matrix whose columns are powers of the elements of x. If n = length(x), then the matrix is n-by-n. The elements of a Vandermonde matrix are

Vandermonde matrices arise in connection with fitting polynomials to data.

Examples

Create a small Vandermonde matrix from a vector x:

x =
    2    3    4    5
          
V = vander(x)
          
V =
     8    4    2    1
    27    9    3    1
    64   16    4    1
   125   25    5    1

See Also

hankel, polyfit, toeplitz

(c) Copyright 1994 by The MathWorks, Inc.