- All matrix elements are either 1 or 0.
- Both row sum vector and column sum vector are given.
- Return a 3-dimensional result that stacks all possible solutions along the third dimension. (exhaustive, all possible solutions need to be included.)
- Avoid looping at best due to performance, use matrix operations whenever possible.
- Thank you so much for your assistance 🙂
MATLAB: How to construct (0,1)-matrices with prescribed row and column sum vectors
MATLAB
Best Answer