MATLAB: Generatenon-repeated random columns in 3 row

modnon repeatedrandom

how can i generate 10 non repeated columns in 3 row? with mod of 57.
the present coding is like this:
a=100;
random=randi(a,3,10);
balance=mod(random,57)

Best Answer

  • Hint: unique(balance, 'rows', 'stable')