How to add 'AWGN' noise to a filtered data stream?
Afficher commentaires plus anciens
I want to add Additive White Gaussian Noise (AWGN) to a filtered data stream. not sure how to include this in the code.
Réponses (1)
Wayne King
le 28 Mai 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.
Catégories
En savoir plus sur Propagation and Channel Models dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!