Hi. How can i add 20% Gaussian noise to some fixed value vector.
2 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Fiaz Ahmad
am 13 Mär. 2016
Kommentiert: Fiaz Ahmad
am 14 Mär. 2016
Suppose i have a fixed value vector [1.05;0.2561;.3321]). I want to add 20% Gaussain noise to this vector such that this vector become the mean of the Gaussian distribution.
I hope that the question is clear
Thanks
2 Kommentare
John D'Errico
am 13 Mär. 2016
No, it is not clear. 20% noise suggests that you do not actually want classical additive Gaussian noise, but proportional noise.
Akzeptierte Antwort
Rick Rosson
am 14 Mär. 2016
m = [ 1.05 ; 0.2561 ; 0.3321 ];
s = 0.2 * m ;
N = 1000;
x = ones(N,1) * m' + randn(N,3) * diag(s);
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Creating and Concatenating Matrices finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!