Learn R Programming

pracma (version 1.8.6)

vander: Vandermonde matrix

Description

Generate Vandermonde matrix from a numeric vector.

Usage

vander(x)

Arguments

x
Numeric vector

Value

  • Vandermonde matrix of dimension n where n = length(x).

Details

Generates the usual Vandermonde matrix from a numeric vector, e.g. applied when fitting a polynomial to given points. Complex values are allowed.

Examples

Run this code
vander(c(1:10))

Run the code above in your browser using DataLab