Filter löschen
Filter löschen

How to add white gaussian noise to a signal?

2 Ansichten (letzte 30 Tage)
bob98
bob98 am 17 Okt. 2020
Kommentiert: Adam Danz am 17 Okt. 2020
I want to add white gaussian noise to a signal x(t) in matlab but i'm quite confused
should i use awgn() function or x+sigma*randn(size(x))+mu
can someone please explain to me what's the difference between the 2 methods and which one should i use ?
Thank you so much!
  1 Kommentar
Adam Danz
Adam Danz am 17 Okt. 2020
randn merely samples from a normal distribution with mean 0 and std 1. For example, histogram(randn(1,20000))
This answer exaplains the awgn function well,

Melden Sie sich an, um zu kommentieren.

Antworten (0)

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by