random symmetric logical matrix
古いコメントを表示
How to generate a random logical symmetric matrix?
(binary symmetric matrix)
採用された回答
その他の回答 (1 件)
kika198513
2018 年 5 月 21 日
0 投票
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 件のコメント
John D'Errico
2018 年 5 月 21 日
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.
カテゴリ
ヘルプ センター および File Exchange で Matrix Indexing についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!