How do you find the inverse of a matrix without the inv() command?

21 次查看(过去 30 天)
So I know the easiest way to find the inverse of a matrix is just simply using the inv() command but I wanted to know if there was a long form method. Specifically is there a way to code the rearranging of the values in a matrix?
from [a b;c d] ====> to [d -b;-c a]

采纳的回答

Matt J
Matt J 2022-3-5
编辑:Matt J 2022-3-5
There is this File Exchange contribution:
Example,
>> A=[1,2;3,4]
A =
1 2
3 4
>> adjugate(A).'
ans =
4.0000 -3.0000
-2.0000 1.0000
  2 个评论
Paul
Paul 2022-3-6
The Symbolic Math Toolbox has function that computes the adjugate. It works for doubles
A = [1 2;3 4];
adjoint(A)
ans = 2×2
4.0000 -2.0000 -3.0000 1.0000

请先登录,再进行评论。

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Creating and Concatenating Matrices 的更多信息

产品


版本

R2021b

Community Treasure Hunt

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

Start Hunting!

Translated by