Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

when det(A)=0 ,why MATLAB can define inverse for matrix?

Status
Not open for further replies.

m.azangoo

Junior Member level 2
Joined
Jul 27, 2009
Messages
21
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Location
iran
Activity points
1,390
Why in MATLAB when we define A matrix as

A=[1 2 3;4 5 6;7 8 9]

whereas det(A)=0 (determinant(A)=0) , it give us this result for inverse of A:

inv(A)=
ans =
1.0e+016 *

-0.4504 0.9007 -0.4504
0.9007 -1.8014 0.9007
-0.4504 0.9007 -0.4504

why we have inverse when det(A)=0

What kind of algorithm matlab use to define inverse of matrix?


thanks for your attention
 

Hi m.azangoo,

note that when you request inv(A) the following warning message is printed (at least in release 14):

Warning: Matrix is close to singular or badly scaled.
Results may be inaccurate. RCOND = 2.203039e-018.


Type "doc inv" in the command window in order to access to the help page with details about the algoritms user.
regards

Z
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top