leony
Member level 1
Hello everyone,
I am confused about a thing. If I wanna add white noise with a variance of 0.0625, are the following are correct?
I am stuck whether I need to use 0.0625 or sqrt of it.
Besides, is it OK to write the following:
so that I can make a relationship between SNR and variance therefore everytime I change SNR, the noise_sig will change according to the variance.
Thanks a lot.
I am confused about a thing. If I wanna add white noise with a variance of 0.0625, are the following are correct?
Code:
noise_sig = original_sig + 0.0625*randn(size(original_sig))
Besides, is it OK to write the following:
Code:
variance=1/(10^(SNR/10));
Thanks a lot.