MATLAB: How to add a white Noise with rms amplitude of 0.5 v by matlab

MATLABwhite noise

Write an m-file with MATLAB, define a signal with an amplitude of 0.7 V at 20 Hz and an amplitude of 1 V at 50 Hz. Now run a frequency analysis following settings respectively: a) Sampling rate: 1000 Hz, signal length: 1 s b) Same with a) but add white noise of rms-amplitude of 0.5 V
I am confused with (b). How can I solve it ?

Best Answer

The randn function returns normally-distributed random numbers with a mean of 0 and a standard deviation of 1. The standard deviation is essentially the rms value. So multiply your randn vector by 0.5.
Related Question