how to generate symmetric matrix with zero-one elements, complexity index of this matrix (number of ones / (size )^2) = any number from zero to 1 and diagonal equal ones
2 次查看(过去 30 天)
显示 更早的评论
how to generate symmetric matrix with zero-one elements, complexity index of this matrix (number of ones / (size )^2) = any number from zero to 1 and diagonal equal ones???
1 个评论
Star Strider
2016-1-23
@Hayam — I thought you might be the only person who wanted the matrix, but it’s gotten several downloads in the 8 hours since I uploaded it!
采纳的回答
Star Strider
2016-1-22
Here you go: Random Binary Matrix With Specified Probability Constrained To Have Ones On The Main Diagonal.
I have no idea if anyone else will ever use it, but it was intriguing enough as a problem for me to make it reasonably robust and put it up on the File Exchange. I’ll take it down eventually if it doesn’t generate any other interest.
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Operating on Diagonal Matrices 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!