Add white Gaussian noise to a voltage signal.
The input x is assumed to be a real or complex voltage signal. The returned value y will be the same form and size as x but with Gaussian noise added. Unless the power is specified in pwr, the signal power is assumed to be 0dBW, and the noise of snr dB will be added with respect to this. If pwr is a numeric value then the signal x is assumed to be pwr dBW, otherwise if pwr is "measured", then the power in the signal will be measured and the noise added relative to this measured power.
If seed is specified, then the random number generator seed is initialized with this value
By default the snr and pwr are assumed to be in dB and dBW respectively. This default behavior can be chosen with type set to "dB". In the case where type is set to "linear", pwr is assumed to be in Watts and snr is a ratio.
See also: randn, wgn.
Package: communications