how does matrix division work in matlab?

32 Ansichten (letzte 30 Tage)
Ilahi
Ilahi am 5 Dez. 2022
Beantwortet: Walter Roberson am 5 Dez. 2022
you can't divise a matrix by a matrix
  2 Kommentare
Torsten
Torsten am 5 Dez. 2022
You see how it works ? It's element-by-element division.
A = [4 16 ; 36 64];
B = [2 4 ; 6 8];
A./B
ans = 2×2
2 4 6 8

Melden Sie sich an, um zu kommentieren.

Antworten (1)

Walter Roberson
Walter Roberson am 5 Dez. 2022
Mathematically (but not in practice) if you have a column vector b and a square array A, then A*x = b is the same as saying that inv(A)*A*x = inv(A)*b but inv(A)*A is the identity matrix so you get to x = inv(A)*b
For non-square matrices A, instead of inv(A) you would use pinv(A)*b where pinv(A) is Moore-Penrose pseudo-inverse pinv
This is not what is actually computed. See https://www.mathworks.com/help/matlab/ref/mldivide.html#bt4jslc-6 for a flow-chart of the algorithms used.

Kategorien

Mehr zu Elementary Math finden Sie in Help Center und File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by