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


linearsolve(a, b)

c = linearsolve(a, b)

Legacy Name: linsolve


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.



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.


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


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


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

Related Topics



 Was this document helpful?  submit
  Helpful Not Helpful