Hi I need to make a 20×10 matrix with random numbers between 0 and 5, inclusive. I already have the matrix but I can't manage to make it inclusive, all the numbers go up tu 4.9999, does anyone know how to do it? I used this formula M=0+(5-0).*rand(20,10)
MATLAB: Inclusive random numbers on a matrix in matlab
arrayinclusivematrixrandomrandom number generator
Best Answer