Skip to Main Content Skip to Search
Product Documentation

vander - Vandermonde matrix

Syntax

A = vander(v)

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

gallery

  


Free MATLAB Interactive Kit

Explore how to use MATLAB to make advancements in engineering and science.


Download free kit

Trials Available

Try the latest version of MATLAB and other MathWorks products.


Get trial software
 © 1984-2012- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS