How to add white gaussian noise to an EEG data timetable?
1 次查看(过去 30 天)
显示 更早的评论
I have two datasets (.edf) of EEG recordings, one for healthy people, one for depressive people.
Each of the recording has 20 channels.
I opened them with edfread() function as a timetable. How can I add white gaussian noise to thiese timetables?
0 个评论
回答(1 个)
Jon
2022-6-1
编辑:Jon
2022-6-1
I am not familiar with .edf files however I think the following example should illustrate the approach and you can adapt for your particular situation
% Make an example timetable, use MATLAB doc example
MeasurementTime = datetime({'2015-12-18 08:03:05';'2015-12-18 10:03:17';'2015-12-18 12:03:13'});
Temp = [37.3;39.1;42.3];
Pressure = [30.1;30.03;29.9];
WindSpeed = [13.4;6.5;7.3];
TT = timetable(MeasurementTime,Temp,Pressure,WindSpeed);
% Add a new column with windspeed corrupted with white noise
sigma = 0.5; % standard deviation of noise
TT.noisyWindSpeed = TT.WindSpeed + randn(size(TT.WindSpeed))*sigma; % scale by standard deviation
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!