How to add 'AWGN' noise to a filtered data stream?
1 view (last 30 days)
Show older comments
I want to add Additive White Gaussian Noise (AWGN) to a filtered data stream. not sure how to include this in the code.
0 Comments
Answers (1)
Wayne King
on 28 May 2012
Use randn(). Add a vector the same size to your filtered data.
Multiply the randn() vector by the standard deviation to give it a specified variance.
Ex:
%sqrt(2) is the standard deviation. Variance is 2
x = sqrt(2)*randn(1000,1);
Creates a WGN vector where the random variables follow a N(0,2) distribution.
0 Comments
See Also
Categories
Find more on Propagation and Channel Models 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!