Community Profile

photo

Jesse Brimeyer


Last seen: 9 giorni fa Attivo dal 2022

Statistiche

  • Thankful Level 1

Visualizza badge

Content Feed

Visto da

Domanda


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

quasi 2 anni fa | 2 risposte | 0

2

risposte