MATLAB: How to generate a matrix of random integers from 55 to 100

random integers matrix

Using function rand, should a matrix of random integers in the interval [55..100] be generated thus:
M = ceil((rand(5,5)+(11/9))*45);?

Best Answer

That looks right if you have to use rand(), for example if this is a school assignment.
Easier would be
M = randi([55 100],5,5);