Invert Matrix Command
古いコメントを表示
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 件のコメント
Jan
2011 年 11 月 15 日
What about trying it in Matlab and comparing the results?
andy ganteng
2011 年 11 月 15 日
Grzegorz Knor
2011 年 11 月 15 日
As I mentioned, "A=B.\1" method is wrong. First, check the determinant of the matrix. If its determinant is 0, the matrix is singular
andy ganteng
2011 年 11 月 15 日
Jan
2011 年 11 月 15 日
"Avoid"? Building the inverse is a well-defined mathematical operation. There are no degrees of freedom which allow to modify the result.
It is like a division by zero: You can catch this case, but you cannot avoid, that the result is Inf (or NaN for some cases).
andy ganteng
2011 年 11 月 15 日
Grzegorz Knor
2011 年 11 月 15 日
Can you write how you make the matrix B and why do you need the inverse matrix?
andy ganteng
2011 年 11 月 15 日
andy ganteng
2011 年 11 月 15 日
andy ganteng
2011 年 11 月 15 日
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
2011 年 11 月 21 日
採用された回答
その他の回答 (0 件)
カテゴリ
ヘルプ センター および File Exchange で Creating and Concatenating Matrices についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!