Dear all,
I try to simulate the data using mvnrdn function but I had the the error saying that "SIGMA must be a symmetric positive semi-definite matrix". I checked the eigenvalues and the problem seems to be the negative eigenvalues of covariance matrix. Does anyone know how to fix this problem?
mean=[3.6,0.48,1.8,1.8,1.12]
var=[0.5365 0.0676 0.2527 0.2527 0.1581
0.0676 0.0092 0.0340 0.0340 0.0213
0.2527 0.0340 0.1321 0.1272 0.0796
0.2527 0.0340 0.1272 0.1321 0.0796
0.1581 0.0213 0.0796 0.0796 0.0511];
Thank you for your suggestions,
Wan

댓글 수: 1

Wayne King
Wayne King 2012년 2월 23일
Hi Winn, I would not name your matrix, var, that is the name of a MATLAB function (variance) and that is going to cause you problems.
Is the matrix you have listed above your covariance matrix, or your variable matrix?

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

답변 (0개)

카테고리

도움말 센터File Exchange에서 Linear Algebra에 대해 자세히 알아보기

질문:

2012년 2월 23일

편집:

2013년 10월 22일

Community Treasure Hunt

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

Start Hunting!

Translated by