Matrix with at most one 1 per row
Show older comments
Hi,
I want to create a binary 2D matrix with at most one '1' per row. This '1' should be at a random column in each row. Can anyone provide me help on this?
thank you in advance
Accepted Answer
More Answers (0)
Categories
Find more on Creating and Concatenating Matrices in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!