Create Special Matrix (Not in Base Package)

Generates a real, special matrix based on the matrix type. Let n represent matrix size, X represent Input Vector1, nx represent the size of X, and Y represent Input Vector2, ny represent the size of Y, and B represent the output Special Matrix.

Input Vector2 used as the input to construct a special matrix in some options.
matrix type specifies the type of special matrix that is generated as the output Special Matrix. matrix type has five possible options.

0Identity Matrix—Generate a n-by-n identity matrix.
1Diagonal Matrix—Generate a n-by-n identity matrix. Generate a nx-by-nx diagonal matrix whose diagonal elements are the elements of X.
2Toeplitz Matrix—Generate a n-by-n identity matrix. Generate a nx-by-ny Toeplitz matrix, which has X as its first column and Y as its first row. If the first element of X and Y are different, the first element of X is used.
3Vandermonde Matrix—Generate a n-by-n identity matrix. Generate a nx-by-nx Vandermonde matrix whose columns are powers of the elements of X. The elements of a Vandermonde matrix are:

where i,j=0...nx-1.
4Companion Matrix—Generate a n-by-n identity matrix. Generate a nx-1-by-nx-1 companion matrix. If vector X is a vector of a polynomial coefficient, the first element of X is the coefficient of the highest order, the last element of X is the constant term in the polynomial, the corresponding companion matrix is constructed as follows: the first row is

the rest of B from the second row is an identity matrix.
The eigenvalues of a companion matrix contain the roots of the corresponding polynomial.
matrix size determines the dimension size of the output Special Matrix.
Input Vector1 used as the input to construct a special matrix in some options.
Special Matrix is the generated matrix.
error returns any error or warning condition from the VI.