powered by
Generate Vandermonde matrix from a vector of numbers.
vander(v)
Returns an n-by-n matrix constructed as described above.
n
numeric or complex vector of values
H. Borchers hwborchers@googlemail.com, P. Roebuck proebuck1701@gmail.com
Generates the Vandermonde matrix whose columns are powers of the vector v (of length n) using the formula
v
A[i, j] = v[i]^(n-j)
Used when fitting a polynomial to given points.
vander(1:5)
Run the code above in your browser using DataLab