필터 지우기
필터 지우기

Invert Matrix Command

조회 수: 7 (최근 30일)
andy ganteng
andy ganteng 2011년 11월 15일
A and B are matrices, which A is invers from B. Is there any differences between A=B^-1; A=B.\1; A=inv(B);
coz i have different result from 3 command above
  댓글 수: 12
Grzegorz Knor
Grzegorz Knor 2011년 11월 16일
Each row in a matrix w is linearly dependent, so rank(w) = 1.
hold all
for k=2:72
plot(w(1,:)./w(k,:))
end
There is no an inverse matrix in this case.
andy ganteng
andy ganteng 2011년 11월 21일
thanks

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

채택된 답변

Grzegorz Knor
Grzegorz Knor 2011년 11월 15일
Statement A=B.\1 doesn't calculate an inverse matrix. You probably mean:
A2=B\eye(size(B))
B^-1 and inv(B) give the same result. B\eye(size(B)) is a little different, because it uses different algorithm.

추가 답변 (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