필터 지우기
필터 지우기

Inverse and identity matrix

조회 수: 2 (최근 30일)
nur yusof
nur yusof 2016년 2월 22일
댓글: nur yusof 2016년 2월 23일
Given. A=[1 2 3;6 7 8;11 12 13]; B=[4 5 6;9 10 11;14 15 16]; and C=-inv(A)*B/eye(3). And the C matrix is
C =
4 8 8
0 0 -8
0 0 4
The size of C matrix must be 6x3.But I only got 3x3. Why does it happen?

채택된 답변

John D'Errico
John D'Errico 2016년 2월 22일
It happens because of the basic rules of those matrix operators.
All of your matrices are 3x3. Both of those binary operations (* and /) between 3x3 matrices result in another 3x3 matrix.
My guess is you have invented in your mind a new rule for the / operator, wherein it becomes a matrix concatenation operator, or something like that. Sorry, but operators have explicit definitions in MATLAB. They follow their defined behaviors, as I would hope they should.
  댓글 수: 1
nur yusof
nur yusof 2016년 2월 23일
Ok.Noted.Can you give me one example how to do it?

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

추가 답변 (0개)

카테고리

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

Community Treasure Hunt

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

Start Hunting!

Translated by