Company Events Academic Community Support Solutions Products & Services Contact NI MyNI

inv (MathScript RT Module Function)

LabVIEW 2012 MathScript RT Module Help

Edition Date: June 2012

Part Number: 373123C-01

»View Product Info
Download Help (Windows Only)

Owning Class: matrixops

Requires: MathScript RT Module

Syntax

c = inv(a)

Description

Computes the inverse of a square matrix.

Details

Examples

Inputs

Name Description
a Specifies a square matrix. If a is singular, or has a determinant of zero, LabVIEW returns an error. If the reciprocal of the infinity norm of a is less than sqrt(eps), LabVIEW generates a warning because the inverse might be inaccurate. Consider checking the value of the inverse using inv(a)*a.

Outputs

Name Description
c Returns the inverse of a. c is a square matrix.

Details

Use the / and \ operators if you multiply a matrix inverse by another matrix within larger expressions. For example, use A\B instead of inv(A)*B and use B/A instead of B*inv(A).

The following table lists the support characteristics of this function.

Supported in the LabVIEW Run-Time Engine Yes
Supported on RT targets Yes
Suitable for bounded execution times on RT Not characterized

Examples

D = [3, 2, -1; 1, 6, 3; 2, -4, 0]
D_INV = inv(D)
RESULT = D*D_INV

Related Topics

condrecip
pinv


 

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