Invert matrix specific command

3 次查看(过去 30 天)
Jiawei Li
Jiawei Li 2015-1-30
回答: Julia 2015-1-30
There are several routines for computing the inverse of a matrix. One of these is the command invert. Type help invert for directions. This command employs ref and just avoids the requirement of appending the same size identity matrix. Use invert to determine which of the following matrices are nonsingular. Beside each matrix record if it is singular or nonsingular.
I tried o type help invert, but the result it shows does not make any sense to me...Can you show me a specific command to compute an actual matrix? Such as A=[1 2 3; 4 5 6; 7 8 9]

回答(1 个)

Julia
Julia 2015-1-30
Hi,
it rather looks to me that you need the inv() command
A =
1 2 3
4 5 6
7 8 9
>> B=inv(A)
Warning: Matrix is close to singular or badly scaled. Results may be inaccurate. RCOND = 1.541976e-18.
B =
1.0e+16 *
-0.4504 0.9007 -0.4504
0.9007 -1.8014 0.9007
-0.4504 0.9007 -0.4504

类别

Help CenterFile Exchange 中查找有关 Switches and Breakers 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by