even distribution in Matlab

18 visualizaciones (últimos 30 días)
Ján Harnas
Ján Harnas el 2 de Jun. de 2020
Respondida: Ameer Hamza el 2 de Jun. de 2020
Hi,how can I generate 1000 numbers distributed evenly between 800 and 1200? Please another function as linspace. Thanks for your help.

Respuesta aceptada

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

Más respuestas (0)

Categorías

Más información sobre Random Number Generation en Help Center y File Exchange.

Productos


Versión

R2019b

Community Treasure Hunt

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

Start Hunting!

Translated by