Generate a white Gaussian noise vector

2 次查看(过去 30 天)
Ali
Ali 2012-5-29
hi
i wish anyone can help me .. i have this quastion to solve:
Generate a white Gaussian noise vector ,,
Note that the Signal-to-Noise Ratio in dB is SNR = 10*log10(Ps/Pn)), with Ps the power of the signal and Pn the power of the noise.
any help is appreciated ..

回答(1 个)

venkat vasu
venkat vasu 2012-7-30
y = wgn(m,n,p); generates an m-by-n matrix of white Gaussian noise. p specifies the power of y in decibels relative to a watt. The default load impedance is 1 ohm. Example:
y2 = wgn(100,1,0,'complex');

Community Treasure Hunt

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

Start Hunting!

Translated by