Generate white noise with amplitude between [-1 1] with Matlab

后端 未结 5 1116
悲&欢浪女
悲&欢浪女 2021-01-14 22:20

I\'m using the Matlab function Y = WGN(M,N,P) to generate white noise with Gaussian distribution. This function uses a power value (dB Watts) to calculate the

5条回答
  •  轮回少年
    2021-01-14 23:14

    You can use rand rather than Gaussian generator. The output range of rand is 0-1, so to make it in the range -1 1 you use rand(args)*2 -1.

    It should be noted that this generator is sampling a uniform density.

提交回复
热议问题