Filter löschen
Filter löschen

Invert Matrix Command

7 Ansichten (letzte 30 Tage)
andy ganteng
andy ganteng am 15 Nov. 2011
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 Kommentare
Grzegorz Knor
Grzegorz Knor am 16 Nov. 2011
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 am 21 Nov. 2011
thanks

Melden Sie sich an, um zu kommentieren.

Akzeptierte Antwort

Grzegorz Knor
Grzegorz Knor am 15 Nov. 2011
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.

Weitere Antworten (0)

Kategorien

Mehr zu Programming finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by