even distribution in Matlab

21 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)

Products


Release

R2019b

Community Treasure Hunt

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

Start Hunting!