add Gaussian distributed noise
6 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
How to add Gaussian distributed noise with zero mean and standard deviation of 0.1 ?
0 Commenti
Risposte (1)
Chris
il 12 Set 2022
Modificato: Chris
il 12 Set 2022
Use normrnd
2 Commenti
Chris
il 12 Set 2022
Modificato: Chris
il 12 Set 2022
The same results as what?
If you want the distribution to be the same each run, you will need to seed the random number generator.
figure
tiledlayout(1,2)
s = rng;
r1 = normrnd(0,.1,50000,1);
nexttile
histogram(r1)
rng(s)
r2 = normrnd(0,.1,50000,1);
nexttile
histogram(r2)
Vedere anche
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!