vander: MATLAB vander function

Description Usage Arguments Details Value Author(s) Examples

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)


Search within the matlab package
Search all R packages, documentation and source code

Questions? Problems? Suggestions? or email at ian@mutexlabs.com.

Please suggest features or report bugs with the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.