Generating vector r of random noise

1 vue (au cours des 30 derniers jours)
Harini Mahendra Prabhu
Harini Mahendra Prabhu le 13 Août 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].

Réponse acceptée

Bruno Luong
Bruno Luong le 13 Août 2020
r = rand(1,100)*0.2 - 0.1

Plus de réponses (0)

Catégories

En savoir plus sur Random Number Generation dans Help Center et File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by