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

后端 未结 5 1078
悲&欢浪女
悲&欢浪女 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:01

    why you just take randn function of whatever bound and then just normalize it like this ex.

     noise=randn(400); noise=noise./max(max(noise)); 
    

    so whatever is the output of randn finally you will have a w.n. inside [-1 1].

提交回复
热议问题