Effacer les filtres
Effacer les filtres

what does A/b mean when solving matrix Ax=b

5 vues (au cours des 30 derniers jours)
Marisa
Marisa le 11 Déc 2023
A/b

Réponses (3)

Steven Lord
Steven Lord le 11 Déc 2023
The \ operator (mldivide function) solves for x in A*x = b.
The / operator (mrdivide function) solves for x in x*A = b.

Voss
Voss le 11 Déc 2023

Walter Roberson
Walter Roberson le 11 Déc 2023
If you have A*x = b then x = A\b is very likely what you need
But if for some reason you want to know what meaning A/b would have in that situation, then:
If A*x = b then A*x*pinv(x) ~~ b*pinv(x) . But A*x*pinv(x) ~~ A because x*pinv(x) ~~ identity matrix. So A*x*pinv(x) ~~ b*pinv(x) ==> A ~~ b*pinv(x) .
Now right-mutiply both sides by pinv(b) to get A*pinv(b) ~~ b*pinv(x)*pinv(b)
Now A*pinv(b) is expressible in MATLAB as A/b, so A/b ~~ b*pinv(x)*pinv(b)
Unfortunately for unknown x that does not get you anywhere useful... except that there are some restricted cases in which pinv(x)*pinv(b) == pinv(b)*pinv(x) and if you just happened to fall into one of those then A/b ~~ pinv(x)
But in practice there is seldom a useful relationship between A/b and A\b. Most of the time you cannot even do both operations due to the restrictions on the column dimensions that \ and / have.
There are however relationships between the operators. According to the Tips,
The operators / and \ are related to each other by the equation B/A = (A'\B')'

Catégories

En savoir plus sur Linear Algebra dans Help Center et File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by