How to add uniform noise with given range

I can't find any good documentation on adding uniform noise with a given range. Does anyone know how to do it? Or can someone point me in the right direction to figure it out.
Add uniform noise to an image with range [-0.05 to 0.05]

 Réponse acceptée

James Tursa
James Tursa le 19 Oct 2018
lower_bound = something
upper_bound = something
n = number of samples
u = lower_bound + rand(1,n)*(upper_bound-lower_bound);
This is the second example in the doc:

Plus de réponses (0)

Catégories

En savoir plus sur MATLAB dans Centre d'aide 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