Hi. How can i add 20% Gaussian noise to some fixed value vector.
7 views (last 30 days)
Show older comments
Commented: Fiaz Ahmad on 14 Mar 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
Rick Rosson on 14 Mar 2016
m = [ 1.05 ; 0.2561 ; 0.3321 ];
s = 0.2 * m ;
N = 1000;
x = ones(N,1) * m' + randn(N,3) * diag(s);
More Answers (0)
Find more on NaNs in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!