| C++ Math Library Reference | ![]() |
Test matrix (Vandermonde matrix)
C++ Prototype
mwArray vander(const mwArray &c);
C++ Syntax
#include "matlab.hpp" mwArray c; // Input argument(s) mwArray A; // Return value A = vander(c);
MATLAB Syntax
[A,B,C,...] = gallery('tmfun',P1,P2,...)
gallery(3) a badly conditioned 3-by-3 matrix
gallery(5) an interesting eigenvalue problem
Description
A = vander(c);
returns the Vandermonde matrix whose second to last column is c. In MATLAB, the jth column of a Vandermonde matrix is given by A(:,j) = C^(n-j).
See Also
gallery Calling Conventions | upper | vertcat | ![]() |