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

linearsolve (MathScript RT Module Function)

LabVIEW 2010 Help

Edition Date: June 2010

Part Number: 371361G-01

»View Product Info

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.

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