R: MATLAB vander function

vander {matlab} | R Documentation

## MATLAB vander function

### Description

Generate Vandermonde matrix from a vector of numbers.

### Usage

    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

        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

    vander(1:5)

[Package matlab version 1.0.2 Index]