Generating vector r of random noise

1 view (last 30 days)
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].

Accepted Answer

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

More Answers (0)

Categories

Find more on Random Number Generation in Help Center and File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!