I want to generate a random binary matrix A(m, n) that meets two conditions:
- The summation of each column in A is 1.
- The summation of each row in A is less than a value in vector B={B1,…,Bm}, where B is a set of values.
Anyone knows, how can I implement it in MATLAB?
Thanks.
Best Answer