Generate random binary matrix (Matlab)
1 view (last 30 days)
David Hill on 2 Jun 2021
Brute force might work for you. Obviously, some combinations of N,M,n,m will not work.
n=6;%number of ones in a row
m=3;%number of ones in a column