I am trying to get the random matrix with the elements only 1 and 0 where none of columns and rows can be 0s only or 1s only, and also the number of 0s and 1s should be in a percentage of 30% and 70%. They have to use probability
Requirements
- Random Matrix
- elements only 1s and 0s
- percentage of 0s: 1s is 3:7
- None of the columns and rows can be with only 0 and only 1. have to have mix
2 Comments
Direct link to this comment
https://de.mathworks.com/matlabcentral/answers/413977-here-i-am-trying-to-get-the-random-matrix-with-the-elements-only-1-and-0-where-none-of-columns-and-r#comment_597543
Direct link to this comment
https://de.mathworks.com/matlabcentral/answers/413977-here-i-am-trying-to-get-the-random-matrix-with-the-elements-only-1-and-0-where-none-of-columns-and-r#comment_597543
Direct link to this comment
https://de.mathworks.com/matlabcentral/answers/413977-here-i-am-trying-to-get-the-random-matrix-with-the-elements-only-1-and-0-where-none-of-columns-and-r#comment_597557
Direct link to this comment
https://de.mathworks.com/matlabcentral/answers/413977-here-i-am-trying-to-get-the-random-matrix-with-the-elements-only-1-and-0-where-none-of-columns-and-r#comment_597557
Sign in to comment.