How to add white gaussian noise to an EEG data timetable?

4 vues (au cours des 30 derniers jours)
Eleonora Adelina Danila
Eleonora Adelina Danila le 1 Juin 2022
Modifié(e) : Jon le 1 Juin 2022
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?

Réponses (1)

Jon
Jon le 1 Juin 2022
Modifié(e) : Jon le 1 Juin 2022
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

Catégories

En savoir plus sur EEG/MEG/ECoG dans Help Center et File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by