Company Events Academic NI Developer Zone Support Solutions Products & Services Contact NI MyNI

inv (MathScript Function) (Windows, Not in Base Package)

LabVIEW 8.5 Help
August 2007

NI Part Number:
371361D-01

»View Product Info

Member of the matrixops class.

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).

Examples

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

Related Topics

pinv
rcond


Resources


 

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