Inverse and determinant of square matrix

Inverse and determinant of a square matrix are determined using only simple matrix multiplication
ダウンロード: 648
更新 2012/11/30

ライセンスの表示

The inverse (AI) and determinant (det) of a given square matrix (AO) may be directly found by
[AI,det] = inv1(AO)
It uses automatic pivoting scheme. All computations involves only simple matrix multiplication.

The direct result without pivoting may also be found by
AI = inv0(AO)
The sourse code is only 4 statement lines. Yet it works for AO = randn(n), even n = 1000.
However, it fails for some simple peculiar matrix, such as AO = [0 1; 1 0].

引用

Feng Cheng Chang (2024). Inverse and determinant of square matrix (https://www.mathworks.com/matlabcentral/fileexchange/38819-inverse-and-determinant-of-square-matrix), MATLAB Central File Exchange. 取得済み .

MATLAB リリースの互換性
作成: R13
すべてのリリースと互換性あり
プラットフォームの互換性
Windows macOS Linux
カテゴリ
Help Center および MATLAB AnswersMatrices and Arrays についてさらに検索
謝辞

ヒントを得たファイル: GINV(X), inv4spd.m, InvSWM_F(xcoord,ycoord,lower,upper,RowStdOpt), Update Inverse Matrix

ヒントを与えたファイル: inv_det_0(A)

Community Treasure Hunt

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

Start Hunting!
バージョン 公開済み リリース ノート
1.5.0.0

Update the m-file, involving direct automatic optional pivoting scheme.

1.4.0.0

Updated after some crucial comments.

1.3.0.0

updated to including pivotings.

1.2.0.0

update m-file

1.0.0.0