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

linearsolve (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: linalgebra

Requires: MathScript RT Module

Syntax

linearsolve(a, b)

c = linearsolve(a, b)

Legacy Name: linsolve

Description

Solves the linear equation ax = b in the unknown x. If no solution exists, LabVIEW returns an error. If an infinite number of solutions exist, LabVIEW does not return an error but generates only one solution.

Examples

Inputs

Name Description
a Specifies a real or complex vector or matrix. The number of rows in a must equal the number of rows in b.
b Specifies a real or complex vector or matrix.

Outputs

Name Description
c Returns a real or complex vector or matrix.

Details

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

A = [1, 2, 3; 1, 3, 3; -1, -1, 2];
B = [1; 1; 1];
C = linearsolve(A, B)

Related Topics

leftdivmx
rightdivmx


 

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