inverse
説明
例
ローラン行列の逆行列
次のようにローラン多項式を作成します。
lpA = laurentPolynomial(Coefficients=[1 1],MaxOrder=1); lpB = laurentPolynomial(Coefficients=[1 1 0 1],MaxOrder=2); lpC = laurentPolynomial(Coefficients=[1],MaxOrder=1); lpD = laurentPolynomial(Coefficients=[1 0 0 1],MaxOrder=2);
行列 lmat
= を作成します。lmat
の行列式を求めます。
lmat = laurentMatrix(Elements={lpA,lpB;lpC,lpD}); det(lmat)
ans = laurentPolynomial with properties: Coefficients: 1 MaxOrder: -1
行列式は非ゼロの単項式です。lmat
の逆行列を求めます。逆行列の成分を調べます。
lmatinv = inverse(lmat); lmatinv.Elements{1,1}
ans = laurentPolynomial with properties: Coefficients: [1 0 0 1] MaxOrder: 3
lmatinv.Elements{1,2}
ans = laurentPolynomial with properties: Coefficients: [-1 -1 0 -1] MaxOrder: 3
lmatinv.Elements{2,1}
ans = laurentPolynomial with properties: Coefficients: -1 MaxOrder: 2
lmatinv.Elements{2,2}
ans = laurentPolynomial with properties: Coefficients: [1 1] MaxOrder: 2
lmat
とその逆行列の積が単位行列に等しいことを確認します。
matprod = lmat*lmatinv; matprod.Elements{1,1}
ans = laurentPolynomial with properties: Coefficients: 1 MaxOrder: 0
matprod.Elements{1,2}
ans = laurentPolynomial with properties: Coefficients: 0 MaxOrder: 0
matprod.Elements{2,1}
ans = laurentPolynomial with properties: Coefficients: 0 MaxOrder: 0
matprod.Elements{2,2}
ans = laurentPolynomial with properties: Coefficients: 1 MaxOrder: 0
入力引数
M
— ローラン行列
laurentMatrix
オブジェクト
ローラン行列。laurentMatrix
オブジェクトとして指定します。
出力引数
R
— 逆行列
laurentMatrix
オブジェクト
ローラン行列の逆行列。laurentMatrix
オブジェクトとして返されます。
拡張機能
C/C++ コード生成
MATLAB® Coder™ を使用して C および C++ コードを生成します。
バージョン履歴
R2021b で導入
MATLAB コマンド
次の MATLAB コマンドに対応するリンクがクリックされました。
コマンドを MATLAB コマンド ウィンドウに入力して実行してください。Web ブラウザーは MATLAB コマンドをサポートしていません。
Select a Web Site
Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .
You can also select a web site from the following list:
How to Get Best Site Performance
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Americas
- América Latina (Español)
- Canada (English)
- United States (English)
Europe
- Belgium (English)
- Denmark (English)
- Deutschland (Deutsch)
- España (Español)
- Finland (English)
- France (Français)
- Ireland (English)
- Italia (Italiano)
- Luxembourg (English)
- Netherlands (English)
- Norway (English)
- Österreich (Deutsch)
- Portugal (English)
- Sweden (English)
- Switzerland
- United Kingdom (English)