Community Profile

photo

Lotanna Ohazuruike


Last seen: 11 months ago Active since 2021

Statistics

  • First Review
  • First Answer
  • Explorer

View badges

Content Feed

View by

Answered
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 years ago | 1