Generating vector r of random noise

6 visualizzazioni (ultimi 30 giorni)
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].

Risposta accettata

Bruno Luong
Bruno Luong il 13 Ago 2020
r = rand(1,100)*0.2 - 0.1

Più risposte (0)

Categorie

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

Tag

Community Treasure Hunt

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

Start Hunting!

Translated by