Proper way to add noise to signal
I’m adding another answer since it strikes me that Steven’s is not quite correct and Horchler’s suggestion to look inside function awgn is a good one. Either MATLAB or Octave (in the communications toolbox) have a function awgn that adds (white Gaussian) noise to attain a desired signal-to-noise power level; the following is the relevant … Read more