A\b 或 b\A 对于 MATLAB 中的 A*x=b

A\b or b\A for A*x=b in MATLAB

A*x = b的解可以通过x = A\b得到。但是我做了 x = b\A 因为我没有寻找确切的语法。我在 A\bb\A 中得到了不同的向量 x。我知道 A\b 或多或少等同于 inv(A)*b,但我不明白如果我这样做 b\A 到底发生了什么。有人知道吗?

来自 MATLAB 文档:

If A is a rectangular m-by-n matrix with m ~= n, and B is a matrix with m rows, then A\B returns a least-squares solution to the system of equations A*x= B.