random symmetric logical matrix
Afficher commentaires plus anciens
How to generate a random logical symmetric matrix?
(binary symmetric matrix)
Réponse acceptée
Plus de réponses (1)
kika198513
le 21 Mai 2018
0 votes
Hi all! Do you have an idea about how to generate a random symmetric logical matrix having a fixed number of 1s over each row and each column? The final matrix should be huge (60000x60000) with very few 1s (8 within each row and each column). I cannot apply the idea above for two reasons: the huge size of the matrix and the fact that in "out = a + tril(a',-1)>.5" I cannot control the final number of 1s at the levels of rows and columns. Many thanks!
1 commentaire
John D'Errico
le 21 Mai 2018
Please don't add an answer just to ask a new question. I will not answer it as such. However, I will answer your question IF you ask the question separately, as a NEW question. This is not that difficult to do.
Catégories
En savoir plus sur Matrix Indexing dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!