Hi.
I have binary matrix 3×3.
0 1 01 0 11 1 1
Let say, it includes six "1" values on random positions. I need to convert two "1" to "0", but randomly.
0 1 01 0 01 0 1
one of the possible outcomes.
Thank you for your help!
binary matrixMATLABonezero
0 1 01 0 11 1 1
0 1 01 0 01 0 1
Best Answer