converting randit to randi
1 view (last 30 days)
Walter Roberson on 11 Jun 2019
Dennis on 11 Jun 2019
Instead of creating single random numbers in a loop maybe consider creating them as vector/matrix.
matrix=randi(9,10,10); %10x10 matrix with random numbers from 1-9