Finding accurate inverse of binary circulant matrix
7 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
I would like to find the inverse of a binary circulant matrix using MATLAB. I have the 24x24 binary circulant matrix stored in BCM and use the function inv(BCM) and I get a lot of garbage values. I have the inverse matrix that I am expecting to get, which is the multiplicative inverse of BCM. When I multiply them in MATLAB, I get the identity matrix which is correct. However, I'm going to need to calculate new inverses of new matrices and would like to do so with MATLAB instead of guessing over and over. How can I do this?
Both BCM and it's inverse are stored in the attached Excel spreadsheet. Thank you!
Garbage Values:
2 Kommentare
Akzeptierte Antwort
Weitere Antworten (2)
John D'Errico
am 10 Jun. 2024
Bearbeitet: John D'Errico
am 11 Jun. 2024
Gosh. I thought that multiplying a matrix by its inverse gives an identity matrix. :)
A = readmatrix('MixingLayer.xlsx','sheet','BCM');
Ainv = readmatrix('MixingLayer.xlsx','sheet','inverseBCM');
A*Ainv
And, honestly, it does not look like an identity matrix. ;-) But then what do I know?
norm(A*Ainv - eye(24))
Norm tells us the product of the two is not even close to an identity. And yes, the actual inverse matrix is not the same as what you give. But it does have the properties of an inverse matrix, a good thing.
inv(A)
A quick check of the condition number of A shows a very small number. And since A is full rank, the inverse exists, and is unique.
cond(A)
norm(A*inv(A) - eye(24))
I'm sorry, but we cannot know why you think that matrix is the inverse of the binary matrix you show. But it is not. Not even close.
0 Kommentare
Siehe auch
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!