MATLAB: How to generate let’s say 1000 points in 2 dimensions uniformly distributed in the range xmin xmax ymin ymax

MATLABplotting

hello, so basically i am stuck on this i want to know how can i create let's say 1000 points or any number but in 2 dimensions unifromly distributed in a specific range ( for example 5 30 5 30)

Best Answer

So what's wrong with
rndxy=randi([5 30],100,10);
? Shape however wished; of course the dimensions have to be factors of N