Metrics for Matrices similarity
조회 수: 27 (최근 30일)
이전 댓글 표시
Dear all, I have made a process that makes approxmation of a source matrix.
Every approximated matrix contains error which usually are extreme values (compares to the source). I have noticed that when sme approximation start looking the same then I am getting really close the source image.
That I want to ask you if you know some mathematical ways to measure similaritis in two approximated-matrices. I have used already the corrcoef and it results goosd results but I also want to check other metric.
I wuld like to thank you in advance for your help B.R Alex
댓글 수: 0
채택된 답변
bym
2011년 10월 29일
you can try using their eigenvalues:
x = norm(eig(a)-eig(b)); % a & b are your 2 matricies
댓글 수: 9
Christine Tobler
2017년 9월 14일
Hi Shima,
It's usually better to start a new post than reviving an old one. I'm not sure of the context for the original post, but I'd typically measure the difference between matrices using
norm(A-B)
which works for non-square matrices, too.
Shanelle Clarke
2020년 5월 24일
I've found that Christine's answer ( norm(A-B)) works better for me, since MATLAB doesn't always report the eig(A) and eig(B) in the same order.
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Matrix Indexing에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!