Adding noise vector in Matlab

Can anyone tell how to add mutually uncorrelated local channel noise vector and global channel noise vector in MATLAB coding?
Noise vectors n ∼ N(0,Rn) and w ∼ N(0,Rw)

 采纳的回答

The Communication System Toolbox has the awgn function. Otherwise, I would use the randn function.
So for example you would define:
n = Rn*randn
w = Rw*randn
with the appropriate ‘size’ arguments to match your vectors.

3 个评论

Thank you! and what would be Rn and Rw?
My pleasure!
In my example, ‘Rn’ and ‘Rw’ are the standard deviations. If you define them instead to be variances, my example changes to:
n = sqrt(Rn)*randn
w = sqrt(Rw)*randn
in order to be consistent with the documentation for randn.
I cannot help you with that, unfortunately. Communications engineering is not an area of my expertise.
I suggest you post that as a new Question, as it is not directly related to this one.

请先登录,再进行评论。

更多回答(0 个)

类别

帮助中心File 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