Generating vector r of random noise

1 Ansicht (letzte 30 Tage)
Harini Mahendra Prabhu
Harini Mahendra Prabhu am 13 Aug. 2020
Beantwortet: Bruno Luong am 13 Aug. 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].

Akzeptierte Antwort

Bruno Luong
Bruno Luong am 13 Aug. 2020
r = rand(1,100)*0.2 - 0.1

Weitere Antworten (0)

Kategorien

Mehr zu Random Number Generation finden Sie in Help Center und File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by