Vandermonde matrix, vander() function extension

Adds functionality to the original MATLAB vander() function.
303 Downloads
Updated 1 Nov 2013

View License

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 (2024). Vandermonde matrix, vander() function extension (https://www.mathworks.com/matlabcentral/fileexchange/43968-vandermonde-matrix-vander-function-extension), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2013b
Compatible with any release
Platform Compatibility
Windows macOS Linux
Categories
Find more on Filter Banks in Help Center and MATLAB Answers

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
Version Published Release Notes
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