Why Matlab tells the following A*A^T matrix is not a positive Semi-definite Matrix ?

조회 수: 5 (최근 30일)
M = [ 1.0000 0 0 0 0 0;...
0 0.9803 -0.0000 -0.0000 -0.0984 0.0984;...
0 -0.0000 0.9902 -0.0984 0.0000 0.0000;...
0 -0.0000 -0.0984 0.0098 0.0000 -0.0000;...
0 -0.0984 0.0000 0.0000 0.0099 -0.0099;...
0 0.0984 0.0000 -0.0000 -0.0099 0.0099];
Is from and its eigenvalues are
d =
-0.0000
-0.0000
0.0000
1.0000
1.0000
1.0000 =
%When vpa is used it shows
-7.365e-18
-2.12e-18
1.347e-16
1.0
1.0
1.0
So, can't we call matrix M, positive semidefinite ?
Apperciated!

채택된 답변

Matt J
Matt J 2020년 10월 22일
편집: Matt J 2020년 10월 22일
Yes, it is positive semi-definite. But Matlab's ability to detect that is limited, because finite precision prevents it from computing exact eigenvalues.
  댓글 수: 5
Matt J
Matt J 2020년 10월 22일
편집: Matt J 2020년 10월 22일
It is very easy to prove from the definition of positive semidefiniteness
x.'*(A*A.')*x
=(x.'*A)*(A.'*x)
=(A.'*x).' * (A.'*x)
=dot(A.'*x,A.'*x)
>=0

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 MATLAB에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by