Generating vector r of random noise

1 visualización (últimos 30 días)
Harini Mahendra Prabhu
Harini Mahendra Prabhu el 13 de Ag. de 2020
Respondida: Bruno Luong el 13 de Ag. de 2020
How do I generate a vector r of random noise, with n = 1 . . . 100. The noise should be selected from a uniform random distribution on [0.1, 0.1].

Respuesta aceptada

Bruno Luong
Bruno Luong el 13 de Ag. de 2020
r = rand(1,100)*0.2 - 0.1

Más respuestas (0)

Categorías

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

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by