Adding noise to EEG dataset
조회 수: 6 (최근 30일)
이전 댓글 표시
dark lion
2017년 11월 12일
댓글: Kaushik Lakshminarasimhan
2017년 11월 12일
Hello I have an EEG dataset loaded into Matlab in Excel format. I want to add a random white noise to the dataset. And I need to convert the output noisy plot again into an excel file. I have attached the Matlab file.
Please suggest me
Thanks
댓글 수: 2
Kaushik Lakshminarasimhan
2017년 11월 12일
You already managed to add noise. So you just want to know how to write the output to an Excel file?
채택된 답변
Kaushik Lakshminarasimhan
2017년 11월 12일
I assume you're getting an error in this line:
X = dataset + 2*randn(size(t));
because dataset is an N x 2 array, whereas 2*randn(size(t)) is 1 x N. Also, you don't want to add noise to time. You need to change it to:
X = [time voltage + A*randn(length(t),1)];
A is the variance of noise, you can set A=1 if you wish. Then write to xls using:
xlswrite('noisyEEG.xls',X);
And if you want to plot it:
plot(X(:,1), X(:,2));
댓글 수: 4
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 EEG/MEG/ECoG에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!