MATLAB: Even distribution in Matlab

even distributionMATLABrandom numbers

Hi,how can I generate 1000 numbers distributed evenly between 800 and 1200? Please another function as linspace. Thanks for your help.

Best Answer

y = rescale(rand(1, 1000), 800, 1200)