# Hi. How can i add 20% Gaussian noise to some fixed value vector.

1 view (last 30 days)
Fiaz Ahmad on 13 Mar 2016
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
Thanks
##### 2 CommentsShow NoneHide None
John D'Errico on 13 Mar 2016
No, it is not clear. 20% noise suggests that you do not actually want classical additive Gaussian noise, but proportional noise.
Fiaz Ahmad on 13 Mar 2016
Hi Thanks John.
Actually i have the vector give above. Now what i want is to take this vector as mean and vary this randomly. The random variation is to be Gaussian 20% around the mean.

Sign in to comment.

### Accepted Answer

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);
##### 1 CommentShow -1 older commentsHide -1 older comments
Fiaz Ahmad on 14 Mar 2016
Thanks Rick it solved the problem

Sign in to comment.

### Categories

Find more on Exponential Distribution 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!