MATLAB vander function

Share:

Description

Generate Vandermonde matrix from a vector of numbers.

Usage

1
vander(v)

Arguments

v

numeric or complex vector of values

Details

Generates the Vandermonde matrix whose columns are powers of the vector v (of length n) using the formula

1
    A[i, j] = v[i]^(n-j)

Used when fitting a polynomial to given points.

Value

Returns an n-by-n matrix constructed as described above.

Author(s)

H. Borchers hwborchers@googlemail.com, P. Roebuck proebuck@mdanderson.org

Examples

1
vander(1:5)

Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker.