powered by
The function returns the Vandermode matrix of a numeric vector, x, whose columns are the vector raised to the powers 0:n.
x
0:n
vandermode(x, n)
a matrix of size length(x) x n
length(x)
n
a numeric vector
a numeric scalar
vandermode(1:5, 4)
Run the code above in your browser using DataLab