Community Profile

photo

Jesse Brimeyer


Last seen: 14 dagar ago Active since 2022

Statistics

  • Thankful Level 1

View badges

Content Feed

View by

Question


I have a 4x4 array of 1's and I need to turn 3 of 4 ones to zero per row at random. So there will be a one 1 left in each row.
A = [1 1 1 1; 1 1 1 1; 1 1 1 1; 1 1 1]; B = [1 0 0 0; 0 0 1 0; 0 1 0 0; 0 0 0 1]; % An example

nästan 2 år ago | 2 answers | 0

2

answers