Vandermonde matrix, vander() function extension

Adds functionality to the original MATLAB vander() function.

You are now following this Submission

Uses the more common definition of the Vandermonde matrix with power zero to the left, and adds the ability to create non-square matrices for more flexibility.

V=vander2(v,k)=[v.^0 v.^1 ... v.^k];
where length(v)=n and dim(V)=[n, k].

Note that replacing the original vander() function can cause other functions to fail.

Cite As

Marcus Björk (2026). Vandermonde matrix, vander() function extension (https://se.mathworks.com/matlabcentral/fileexchange/43968-vandermonde-matrix-vander-function-extension), MATLAB Central File Exchange. Retrieved .

General Information

MATLAB Release Compatibility

  • Compatible with any release

Platform Compatibility

  • Windows
  • macOS
  • Linux
Version Published Release Notes Action
1.1.0.0

Changed function name to vander2 not to replace original (since the output is changed).
Replaced for-loop by bsxfun.

1.0.0.0