MATLAB: Generating vector r of random noise

vectors

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].

Best Answer

r = rand(1,100)*0.2 - 0.1