MATLAB: How to add white noise to signal

sampling timewhite noise

Hi,friends, i wanna add white noise to measured signals, first of all, what's the allowable size i have to choose for adding noise to signal, second, because of my continous system, i used band limited white noise block, what's the proper noise power or sampling time and or seeds…

Best Answer

hi, Azzi mentioned a good point about the seed and about the signals noise, for this its better to work with signal to noise ratio :
s=std(signal(:));
%snr=20*log10(s/n); you can give a snr value and compute n, next :
y=signal+n*(randn(size(signal)));
Remember that this is only for real signals, not for complex ones .
Related Question