inverse
Syntax
Description
Examples
Create the Laurent polynomials:
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);
Create the matrix lmat
= . Obtain the determinant of lmat
.
lmat = laurentMatrix(Elements={lpA,lpB;lpC,lpD}); det(lmat)
ans = laurentPolynomial with properties: Coefficients: 1 MaxOrder: -1
The determinant is a nonzero monomial. Obtain the inverse of lmat
. Inspect the elements of the inverse.
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
Confirm the product of lmat
and its inverse is equal to the identity matrix.
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
Input Arguments
Laurent matrix, specified as a laurentMatrix
object.
Output Arguments
Inverse of a Laurent matrix, returned as a laurentMatrix
object.
Extended Capabilities
C/C++ Code Generation
Generate C and C++ code using MATLAB® Coder™.
Version History
Introduced in R2021b
MATLAB Command
You clicked a link that corresponds to this MATLAB command:
Run the command by entering it in the MATLAB Command Window. Web browsers do not support MATLAB commands.
Website auswählen
Wählen Sie eine Website aus, um übersetzte Inhalte (sofern verfügbar) sowie lokale Veranstaltungen und Angebote anzuzeigen. Auf der Grundlage Ihres Standorts empfehlen wir Ihnen die folgende Auswahl: .
Sie können auch eine Website aus der folgenden Liste auswählen:
So erhalten Sie die bestmögliche Leistung auf der Website
Wählen Sie für die bestmögliche Website-Leistung die Website für China (auf Chinesisch oder Englisch). Andere landesspezifische Websites von MathWorks sind für Besuche von Ihrem Standort aus nicht optimiert.
Amerika
- América Latina (Español)
- Canada (English)
- United States (English)
Europa
- 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)