简体   繁体   English

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

[英]A\b or b\A for A*x=b in MATLAB

A solution of A*x = b can be obtained by x = A\\b . 可以通过x = A\\b获得A*x = b解。 But I did x = b\\A as I did not look for exact syntax. 但是我做了x = b\\A因为我没有寻找确切的语法。 I got different vectors x in with A\\b and b\\A . 我用A\\bb\\A获得了不同的向量x I understood that A\\b is more or less equivalent to inv(A)*b , but I don't understand what exactly is happening if I do b\\A . 我知道A\\b或多或少等于inv(A)*b ,但是我不明白如果我执行b\\A会发生什么。 Does anyone know about it? 有人知道吗?

From the MATLAB documentation: 从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. 如果A是m〜= n的矩形m×n矩阵,而B是m行的矩阵,则A \\ B将最小二乘解返回到方程A * x = B的系统。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM