Invert Matrix Command

17 次查看(过去 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.

请先登录,再进行评论。

采纳的回答

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 中查找有关 Matrix Indexing 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by