V = vander(x)
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 areVandermonde matrices arise in connection with fitting polynomials to data.
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
hankel
,polyfit
,toeplitz
(c) Copyright 1994 by The MathWorks, Inc.