About fx awgn()

2 次查看(过去 30 天)
Juan Beltran
Juan Beltran 2011-12-13
I use awgn((x,snr,'measured') function in order to obtain a output with somelevel of noise, but I want to know how Matlab is measuring the power of x. Does anybody knows how?
Thanks.

回答(2 个)

Wayne King
Wayne King 2011-12-13
Hi, if you use 'measured', the signal power is
sigpower = norm(sig,2)^2/length(sig);
The L2 norm squared divided by the length of the signal.
If you are then using the POWERTYPE 'db', the power is
10*log10(sigpower)
Hope that helps

J. M. Wincn
J. M. Wincn 2012-8-5
The above answer is nice, concise, but incomplete, and anyone who would attempt to use it should do so with caution. The OP did not precisely specify what he was attempting to do, whether the target result was meant to represent Eb/N0 or Es/N0, Binary or M-ary coding, and whether he intended to simulate one sample per bit time or N samples per bit time. Depending on presumed conditions, you could get dramatically different results with the same calculation method.

类别

Help CenterFile Exchange 中查找有关 Propagation and Channel Models 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by