Complex Inverse Matrix VI
- Updated2025-07-30
- 3 minute(s) read
Finds Inverse Matrix, if it exists, of Input Matrix. Wire data to the Input Matrix input to determine the polymorphic instance to use or manually select the instance.

Inputs/Outputs
Input Matrix
—
Input Matrix must be a nonsingular, square matrix. If the Input Matrix is singular or is not square, the VI sets the Inverse Matrix to an empty array and returns an error. A nonsingular matrix is a matrix in which no row or column contains a linear combination of any other row or column, respectively. You cannot always determine beforehand whether the matrix is singular, especially with large systems. The Complex Inverse Matrix VI detects singular matrices and returns an error, so you do not need to verify whether you have a valid system before using this VI.
matrix type
—
matrix type is the type of Input Matrix. Knowing the type of Input Matrix can speed up the computation of the Inverse Matrix and can help you to avoid unnecessary computation, which could introduce numerical inaccuracy.
Inverse Matrix
—
Inverse Matrix is the inverse matrix of the Input Matrix.
error
—
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. |
If Input Matrix is nonsingular, you can find Inverse Matrix by solving the linear system given by the following equation.
AB = I,where A is the Input Matrix, B is the Inverse Matrix, and I is the identity matrix.
If A is a nonsingular matrix, you can show that the solution to the preceding system is unique and that it corresponds to the Inverse Matrix of A, given by the following equation.
B = A–1Therefore, B is an Inverse Matrix.
Examples
Refer to the following example files included with LabVIEW.
- labview\examples\Mathematics\Linear Algebra\Linear Algebra Calculator.vi
- labview\examples\Mathematics\Linear Algebra\Matrix to a Power.vi
Input Matrix
—
matrix type
—
Inverse Matrix
—
error
—