even distribution in Matlab

18 vues (au cours des 30 derniers jours)
Ján Harnas
Ján Harnas le 2 Juin 2020
Hi,how can I generate 1000 numbers distributed evenly between 800 and 1200? Please another function as linspace. Thanks for your help.

Réponse acceptée

Ameer Hamza
Ameer Hamza le 2 Juin 2020
y = rescale(rand(1, 1000), 800, 1200)

Plus de réponses (0)

Catégories

En savoir plus sur Random Number Generation dans Help Center et File Exchange

Produits


Version

R2019b

Community Treasure Hunt

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

Start Hunting!

Translated by