linearsolve (MathScript RT Module Function)

LabVIEW 2012 MathScript RT模块帮助

版本日期:June 2012

产品编号:373123C-0118

»查看产品信息
下载帮助
(仅限Windows)

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

文章是否对您有帮助?

没有帮助