How to fix this error (SIGMA must be a symmetric positive semi-definite matrix)?

5 Ansichten (letzte 30 Tage)
Hi,
This error appears in my code: while the size of SIGMA (if it is sigma_m) is 6005 6005, means it is laready symmetric.
Error using mvnrnd (line 112)
SIGMA must be a symmetric positive semi-definite matrix.
Error in Bayesian_Visco_AVO_Inversion (line 79)
msim = mvnrnd(Mu_m, Sigma_m)';
  1 Kommentar
James Tursa
James Tursa am 15 Jun. 2021
The fact that the size is 6005 x 6005 only means that it is square, which is not the same thing as symmetric positive semi-definite:

Melden Sie sich an, um zu kommentieren.

Antworten (0)

Kategorien

Mehr zu Resizing and Reshaping Matrices finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by