Navigation

Operators and Keywords

Function List:

C++ API

: vander (c)
: vander (c, n)

Return the Vandermonde matrix whose next to last column is c.

If n is specified, it determines the number of columns; otherwise, n is taken to be equal to the length of c.

A Vandermonde matrix has the form:

c(1)^(n-1) … c(1)^2  c(1)  1
c(2)^(n-1) … c(2)^2  c(2)  1
    .     .      .      .    .
    .       .    .      .    .
    .         .  .      .    .
c(n)^(n-1) … c(n)^2  c(n)  1

See also: polyfit.

Package: octave