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!