[Moved]: How can i add random noise in an EEG signal?

Status
Not open for further replies.

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);
 

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.
 

Status
Not open for further replies.

Similar threads

Cookies are required to use this site. You must accept them to continue using the site. Learn more…