フィルターのクリア

Calculate the inverse of a matrix

19 ビュー (過去 30 日間)
amine&&
amine&& 2016 年 9 月 14 日
編集済み: Valentin Marinov 2021 年 1 月 23 日
Hello, i want to calculate the reverse of this matrix :
1 -1 0 0
-1 1 0 0
0 0 1 -1
0 0 -1 1
but I get the following result :
Inf Inf Inf Inf
Inf Inf Inf Inf
Inf Inf Inf Inf
Inf Inf Inf Inf
what are your suggestion? Thanks.
  3 件のコメント
Brendan Hamm
Brendan Hamm 2016 年 9 月 14 日
This is a singular matrix, as can be seen by the linear dependence of columns:
X(:,1) == -X(:,2)
and
X(:,3) == -X(:,4)
amine&&
amine&& 2016 年 9 月 14 日
Thanks Brendan. Yes i understand you're is a singular matrix, therefore its inverse can not calculate but we can calculate a pseudo-inverse.

サインインしてコメントする。

採用された回答

John D'Errico
John D'Errico 2016 年 9 月 14 日
This is a singular matrix. No matter how badly you want to do so, you cannot invert a singular matrix. Not possible. Never will be. The laws of mathematics are simple in this respect. The inverse does not exist. You cannot form what does not exist.
At best, you can use pinv, to compute a pseudo-inverse. It is NOT an inverse. It does not have the properties of an inverse.
  5 件のコメント
amine&&
amine&& 2021 年 1 月 22 日
@Valentin Marinov thanks for the joke. Can you give the definition of the Moore–Penrose inverse.
Valentin Marinov
Valentin Marinov 2021 年 1 月 23 日
編集済み: Valentin Marinov 2021 年 1 月 23 日
Sure. Here's a video that explains it good enough: https://www.youtube.com/watch?v=5bxsxM2UTb4. The example is at 3:30. I'm no pro so don't think I know how to use this in real life, but the guy explains the idea pretty good and tells the matlab funtions, you can use to simulate the actions he explains. Hope it helps you out.
EDIT: just saw the post is from 2016, so I assume you don't need that anymore, but I'll leave it just in case.

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeSparse Matrices についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by