Are not all symmetric invertible matrices positive semidefinite??
Afficher commentaires plus anciens
Hi,
I remember to learn that a symmetric matrix is positive semidefinite if and only if it is invertible. But the matrix 'covmat' in the .mat file that you can download using the below link is symmetric, invertible, but not positive semidefinite.
After loading ask.mat, you can try below code portions to check what I am saying.
issym(covmat); % you will get answer 1
inv(covmat); % you will get no error
mvnrnd(zeros(110, 1), covmat, 20); % you will get the error below:
??? Error using ==> mvnrnd at 118
SIGMA must be a symmetric positive semi-definite matrix.
How can it be possible? What is wrong with this matrix? Do I have some wrong knowledge of matrix properties of invertibleness, positive semidefiniteness, etc.?
Thanks!
Réponse acceptée
Plus de réponses (0)
Catégories
En savoir plus sur Pulse and Transition Metrics dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!