Lotanna Ohazuruike
Followers: 0 Following: 0
Feeds
답변 있음
How can I create a random binary matrix with a specified number of 1's and 0's?
Here's a neat trick I use. r4 = rand(15,15); % generates uniformly distributed random number 15x15 array r4(r4>0.3) = 1; ...
How can I create a random binary matrix with a specified number of 1's and 0's?
Here's a neat trick I use. r4 = rand(15,15); % generates uniformly distributed random number 15x15 array r4(r4>0.3) = 1; ...
대략 3년 전 | 1