Cody

Problem 43752. Vandermonde Matrix

Created by JD in Community

Create the Vandermonde Matrix of the given vector. The matrix consists of columns as powers of the vector, so the first column is the inverse of the vector raised to 0. The second column is the vector raised to 1, etc.

For example, given the vector:

v=[1 2 3 4 5];

the Vandermonde Matrix would be

Vm=
   1     1     1     1     1
   1     2     4     8    16
   1     3     9    27    81
   1     4    16    64   256
   1     5    25   125   625

See Vandermonde Matrix for more details.

Solution Stats

43.9% Correct | 56.1% Incorrect
Last solution submitted on Feb 12, 2019

Recent Solvers33

Suggested Problems

More from this Author11

Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

MATLAB Academy

New to MATLAB?

Learn MATLAB today!