problem with inversion of a matrix
이전 댓글 표시
Hi, I need to do an inversion of N=(B*(R)^(-1)*B')^(-1). B->12x4 R->4x4, as a result my matlab gives me matrix 1x1. The problem is the last inversion, because without it as a result is matrix 12x12. Could anyone help me?
댓글 수: 6
You need to read this:
and then review the operations that you are using.
Torsten
2017년 6월 29일
There must be something wrong in your definition of N. B is (12x4), R^(-1) is (12x12). Thus B*R^(-1) is not defined ...
Please show the MATLAB code you are using at the moment.
Best wishes
Torsten.
Paulina Superczynska
2017년 6월 29일
편집: Paulina Superczynska
2017년 6월 29일
Torsten
2017년 6월 29일
As written, the inverse of N is
N^(-1) = B*(R)^(-1)*B'
Do you have problems computing this matrix ?
Best wishes
Torsten.
Paulina Superczynska
2017년 6월 29일
John D'Errico
2017년 6월 29일
편집: John D'Errico
2017년 6월 29일
READ MY ANSWER! You don't get an inverse, because the inverse of a singular matrix does not exist. Just wanting to compute something that does not exist is a problem, and a problem that cannot be solved. At best you can compute a pseudo-inverse.
답변 (1개)
John D'Errico
2017년 6월 29일
So what is the problem? Let me guess, the inverse you are trying to compute does not exist?
You state:
N=(B*(R)^(-1)*B')^(-1). B->12x4 R->4x4
The intermediate result of
B*(R)^(-1)*B'
is indeed a 12x12 matrix. But it is a matrix that has rank 4 at the very most. That is a given (linear algebra 101).
The inverse of a 12x12 rank 4 matrix does not exist. The matrix is singular, and a singular matrix has no inverse.
So for whatever reason you think you need to do this, you are wrong.
We don't know what the purpose of this expression you are trying to compute. Can a pseudo-inverse (help pinv) satisfy your needs? How can we know? The one thing that I do know is that trying to compute the inverse is not going to be a success.
카테고리
도움말 센터 및 File Exchange에서 Logical에 대해 자세히 알아보기
제품
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!