how does matrix division work in matlab?

조회 수: 23 (최근 30일)
Ilahi
Ilahi 2022년 12월 5일
답변: Walter Roberson 2022년 12월 5일
you can't divise a matrix by a matrix
  댓글 수: 2
Torsten
Torsten 2022년 12월 5일
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

댓글을 달려면 로그인하십시오.

답변 (1개)

Walter Roberson
Walter Roberson 2022년 12월 5일
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.

카테고리

Help CenterFile Exchange에서 Elementary Math에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by