How to add white gaussian noise with specific variance using awgn?
20 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Georgios Orfanidis
le 21 Sep 2021
Commenté : Georgios Orfanidis
le 27 Sep 2021
I want to add white gaussian noise with a specific variance. How can I accomplish this by using either wgn or awgn functions?
Can I do something like that,
out = awgn(in, var=1);
0 commentaires
Réponse acceptée
Prachi Kulkarni
le 24 Sep 2021
Hi,
In the wgn function, if you set the power type to linear i.e. watts, the power of the noise signal is the variance itself.
So, you can generate Gaussian noise of variance noiseVar for a signal of dimensions m x n as follows.
wgn(m,n,noiseVar,'linear')
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur Propagation and Channel Models dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!