MATLAB Function Reference |
Syntax
Description
A = vander(v)
returns the Vandermonde matrix whose columns are powers of the vector v
, that is, A(i,j) = v(i)^(n-j)
, where n = length(v)
.
Examples
vander(1:.5:3) ans = 1.0000 1.0000 1.0000 1.0000 1.0000 5.0625 3.3750 2.2500 1.5000 1.0000 16.0000 8.0000 4.0000 2.0000 1.0000 39.0625 15.6250 6.2500 2.5000 1.0000 81.0000 27.0000 9.0000 3.0000 1.0000
See Also
urlwrite | var |
© 1994-2005 The MathWorks, Inc.