How to generate noise using specific variance
问题 In the matlab function awgn() that is used to add noise to a signal, is there a way specify the variance? In general, I would have simply done noisevec = sqrt(2)*randn(length(X),1); creates a noise vector of variance 2. Then the noisy observations are Y = X+noisevec But, I would like to apply awgn() and then check if the variance of noise is indeed as specified by the user. How to do that? % add noise to produce % an SNR of 10dB, use: X = sin(0:pi/8:6*pi); Y = awgn(X,10,'measured'); UPDATE :