Jul 7, 2017 #1 A Aparna24 Newbie level 4 Joined Jun 23, 2017 Messages 6 Helped 0 Reputation 0 Reaction score 0 Trophy points 1 Activity points 52 I have generated a code and implemented the EEG signal. Now i need to add random noise to it.The code i use is: fs = 512 T = 1/fs; N =length(EEGsig); ls = size(EEGsig); tx =[0:length(EEGsig)-1]/fs; fx = fs*(0:N/2-1)/N; figure; subplot (211), plot(tx,EEGsig); xlabel('Time (s)'), ylabel('Amplitude (uV)'), title('Original EEG signal'); subplot(212), plot(tx,EEGsig);
I have generated a code and implemented the EEG signal. Now i need to add random noise to it.The code i use is: fs = 512 T = 1/fs; N =length(EEGsig); ls = size(EEGsig); tx =[0:length(EEGsig)-1]/fs; fx = fs*(0:N/2-1)/N; figure; subplot (211), plot(tx,EEGsig); xlabel('Time (s)'), ylabel('Amplitude (uV)'), title('Original EEG signal'); subplot(212), plot(tx,EEGsig);
Jul 8, 2017 #2 barry Advanced Member level 7 Joined Mar 31, 2005 Messages 6,333 Helped 1,194 Reputation 2,400 Reaction score 1,389 Trophy points 1,393 Location California, USA Activity points 34,481 Not sure what your question is. The rand() function will generate random numbers that can be added to your signal. You may have to scale it.
Not sure what your question is. The rand() function will generate random numbers that can be added to your signal. You may have to scale it.