Matrix Decomposition

Positive definite correlation matrix based on spectral decomposition. Now both for .m, C and Mex

You are now following this Submission

Matrix decomposition using, e.g. the Cholesky decomposition requires the correlation matrix to be positive definite. That is, the eigenvalues must all be positive. In finance, this is rarely the case, and one often observes negative eigenvalues, or zero eigenvalues. These two functions do essentially the same thing. One adjusts only the <= 0 eigenvalues, while the other adjusts those eigenvalues, but then also increases the other non-negative eigenvalues to compensate for the higher 'weight' given to the smaller eigenvalues.

Cite As

Aleksander (2026). Matrix Decomposition (https://www.mathworks.com/matlabcentral/fileexchange/31296-matrix-decomposition), MATLAB Central File Exchange. Retrieved .

General Information

MATLAB Release Compatibility

  • Compatible with any release

Platform Compatibility

  • Windows
  • macOS
  • Linux
Version Published Release Notes Action
1.7.0.0

This update includes the program in C programming code, as well as a MEX implementation, providing potentially significant speed and memory handling enhancements.

1.6.0.0

Added screenshot

1.3.0.0

Updated description

1.2.0.0

Removed one function

1.0.0.0