even distribution in Matlab

12 visualizzazioni (ultimi 30 giorni)
Ján Harnas
Ján Harnas il 2 Giu 2020
Risposto: Ameer Hamza il 2 Giu 2020
Hi,how can I generate 1000 numbers distributed evenly between 800 and 1200? Please another function as linspace. Thanks for your help.

Risposta accettata

Ameer Hamza
Ameer Hamza il 2 Giu 2020
y = rescale(rand(1, 1000), 800, 1200)

Più risposte (0)

Categorie

Scopri di più su Random Number Generation in Help Center e File Exchange

Prodotti


Release

R2019b

Community Treasure Hunt

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

Start Hunting!

Translated by