class="resources" Create Special Matrix (Not in Base Package) - LabVIEW 7.1 Help - Support - National Instruments
Company Events Academic NI Developer Zone Support Solutions Products & Services Contact NI MyNI

Create Special Matrix (Not in Base Package)

Generates a special matrix based on matrix type. You can use this polymorphic VI to create a special real matrix or a special complex matrix. The data types you wire to the Input Vector2 and Input Vector1 inputs determine the polymorphic instance to use.

Create Special Real 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. 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.

0Identity—Generates a n-by-n identity matrix.
1Diagonal—Generates a nx-by-nx diagonal matrix whose diagonal elements are the elements of X.
2Toeplitz—Generates 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—Generates a nx-by-nx Vandermonde matrix whose columns are powers of the elements of X. The elements of a Vandermonde matrix are:

bi,j = xinxj – 1

where i,j = 0…nx – 1.
4Companion—Generates 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 from the VI. You can wire error to the Error Cluster From Error Code VI to convert the error code or warning into an error cluster.

Create Special Complex 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. 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.

0Identity—Generates a n-by-n identity matrix.
1Diagonal—Generates a nx-by-nx diagonal matrix whose diagonal elements are the elements of X.
2Toeplitz—Generates 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—Generates a nx-by-nx Vandermonde matrix whose columns are powers of the elements of X. The elements of a Vandermonde matrix are:

bi,j = xinxj – 1

where i,j = 0…nx – 1.
4Companion—Generates 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 from the VI. You can wire error to the Error Cluster From Error Code VI to convert the error code or warning into an error cluster.

Resources


 

Your Feedback! poor Poor  |  Excellent excellent   Yes No
 Document Quality? 
 Answered Your Question? 
Add Comments 1 2 3 4 5 submit