Matrix Inverse calculation problem.

조회 수: 2 (최근 30일)
Rajeev Prajapati
Rajeev Prajapati 2015년 5월 25일
댓글: Bjorn Gustavsson 2015년 5월 26일
help me with it.
  댓글 수: 1
Geoff Hayes
Geoff Hayes 2015년 5월 25일
Rajeev - please describe (or show) what you have tried so far. Indicate which part of the code you are having problems with or not understanding.

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

답변 (1개)

Mark Stone
Mark Stone 2015년 5월 25일
편집: Mark Stone 2015년 5월 25일
If you have a matrix A, and want to calculate the inverse of it using MATLAB, then inv(A) is the inverse of A. If this is not sufficient to answer your question, then you need to explain what you are trying to do.
  댓글 수: 4
Mark Stone
Mark Stone 2015년 5월 25일
편집: Mark Stone 2015년 5월 25일
pinv is just the ticket for linear least squares. solution = pinv(A) * b , computed using rock solid SVD, much more reliable than A\b .
I'm not quite sure why anyone, including me, is humoring the O.P. given the question as posed. I chose not to enter into a discussion that, often or usually, the inverse isn't needed, and you should use \ or whatever. I was leaving that for round 2 when/if the O.P. asked a reasonable question.
Bjorn Gustavsson
Bjorn Gustavsson 2015년 5월 26일
Mark, I agree on all(most) all counts - the only objection I have is that when solving ill-conditioned inverse problems one should always look carefully at the eigenvalues and eigenvectors (and consider the full range of suitable regularizations).

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

카테고리

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

Community Treasure Hunt

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

Start Hunting!

Translated by