even distribution in Matlab

18 views (last 30 days)
Ján Harnas
Ján Harnas on 2 Jun 2020
Answered: Ameer Hamza on 2 Jun 2020
Hi,how can I generate 1000 numbers distributed evenly between 800 and 1200? Please another function as linspace. Thanks for your help.

Accepted Answer

Ameer Hamza
Ameer Hamza on 2 Jun 2020
y = rescale(rand(1, 1000), 800, 1200)

More Answers (0)

Categories

Find more on Random Number Generation in Help Center and File Exchange

Products


Release

R2019b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!