mrdivide,/
Solve systems of linear equationsxA = Bforx
Syntax
Description
solves the system of linear equationsx
=B
/A
x*A = B
forx
。矩阵A
和B
must contain the same number of columns. MATLAB®displays a warning message ifA
is badly scaled or nearly singular, but performs the calculation regardless.
如果
A
is a scalar, thenb/a
相当于B./A
。如果
A
is a squaren
-by-n
matrix andB
是一个矩阵n
columns, thenx = b/a
is a solution to the equationx*A = B
, if it exists.如果
A
是矩形m
-by-n
matrix withm ~= n
, 和B
是一个矩阵n
columns, thenx
=
B
/A
returns a least-squares solution of the system of equationsx*A = B
。
Examples
Input Arguments
Output Arguments
提示
The operators
/
和\
are related to each other by the equationb/a= (A'\B')'
。如果
A
是一个方形矩阵,然后b/a
大致等于B*Inv(A)
, but MATLAB processesb/a
不同的和更坚固的。Use
decomposition
对象可以有效地用不同的右侧求解线性系统。decomposition
objects are well-suited to solving problems that require repeated solutions, since the decomposition of the coefficient matrix does not need to be performed multiple times.