How to generate random positive semi-definite matrix with ones at the diagonal positions?
Show older comments
I can create random positive semi-definite matrix, but how to force the ones at the diagonal positions? I need a random correlation matrix.
Accepted Answer
More Answers (0)
Categories
Find more on Creating and Concatenating Matrices in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!