Skip to content

vander

special-matrix · scripts/special-matrix/vander.m

: A = vander (c)
: A = vander (c, n)

Return the Vandermonde matrix of the vector c: column j holds the elements of c raised to the power n - j, so the last column is all ones.

The optional second argument n selects the number of columns (default numel (c)).