![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/496113/image.png)
multiplication of multiple type matrices
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
Nazrin Afiq Abdul Rahman
am 21 Jan. 2021
Kommentiert: Nazrin Afiq Abdul Rahman
am 22 Jan. 2021
Hello,
Can someone help me. I alredy forgot about order of matrices in mathematics. What i want to ask is about multiplication of multiple matrices. For example this is the formula
. Can someone help me construct the calculation for this formula and explain to me. The dimension for A is a 2x2.
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/496098/image.png)
The answer that i get when i multiply all parameter at the same time (example E=A*B*C*D) it get different when i multiply one-by-one (example AB=A*B then ABC=AB*C then ABCD=A*B*C*D). Can someone help me?
0 Kommentare
Antworten (1)
James Tursa
am 21 Jan. 2021
Bearbeitet: James Tursa
am 21 Jan. 2021
Matrix multiplication is associative, so the order of the multiplication doesn't matter mathematically. You might get small differences due to numerical effects. If you are getting something vastly different then maybe you can show us the exact code you are using and we can comment on it.
That being said, if A is 2x2 then the inverse of
will only exist if A is full rank. And if that is the case then your equation reduces to alpha = [dx dy]*inv(A), in which case maybe you should be doing this instead: alpha = [dx dy]/A
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/496113/image.png)
Are you sure about the dimensions of A?
Siehe auch
Kategorien
Mehr zu Loops and Conditional Statements finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!