how does matrix division work in matlab?

5 views (last 30 days)
Ilahi on 5 Dec 2022
Answered: Walter Roberson on 5 Dec 2022
you can't divise a matrix by a matrix

Sign in to comment.

Answers (1)

Walter Roberson
Walter Roberson on 5 Dec 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 for a flow-chart of the algorithms used.


Community Treasure Hunt

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

Start Hunting!