Rank: 156183 based on 0 downloads (last 30 days) and 0 file submitted

Shuo Han

California Institute of Technology

Personal Profile:


Watch this Author's files


Comments and Ratings by Shuo Han
Updated File Comments Rating
20 Sep 2012 Nearest positive semi-definite covariance matrix Find nearest positive semi-definite matrix to a symmetric matrix that is not positive semi-definite Author: Marco B.

This does not need fmincon() and can be done in two lines. Suppose the input matrix is A

[V,D] = eig(A);
A_psd = V * max(D,0) / V;

Contact us