18 Downloads
Updated16 May 2007
No License
This code reads EEG data of specified length from a specified 'bdf' file. It is easier to use than traditional bdf readers and does not output some unnecessary (from author's point of view) information, such as sampling frequency for EACH EEG channel. All EEG channels are assumed as sampled at the same frequency, pre-filtered by same filters and so on...
Gleb Tcheslavski (2021).EEG bdf reader(//www.tatmou.com/matlabcentral/fileexchange/13070-eeg-bdf-reader), MATLAB Central File Exchange. Retrieved.
Find the treasures in MATLAB Central and discover how the community can help you!
开始狩猎!Create scripts with code, output, and formatted text in a single executable document.
Hi...I don't know exactly how this code work,I mean when i substitute the parameters('part.bdf','all')...my matlab error this:'unexpected Matlab expression'
And need more brackets or bracelets! Can you help me ?
it does not return the trigger times
Hello
I can not work with this file,[parameters] = eeg_read_bdf('bpillar.bdf','all'), which my file is bpillar.bdf i get error of "labels = cellstr(deblank(char(fread(fid,[7,numChan],'7*char',9)')))"
can you help me on this?!
Best,
Haghnejat
I am getting the below specified error while running the code.Can anyone suggest the possible solution and help me know what does idx array in the code mean and what does it store?
Error:
Index exceeds matrix dimensions.
Error in eeg_read_bdf (line 74)
aux = aux(idx,:);
This function is not very general... The reshape will work only for 65 EEG channels (and only if the electrodes are correctly labeled)
Concerning the note:
"Note: for some reason, bdf format specifies separate sets of "fs", "gain", "ChanDim", and "prefiltering" or every EEG channel. This function returns these values for the first channel (electrode) only!
This is a big mistake for chanDim: for instance with biosemi you can also record peripheral signals that are not in uV (like electrodermal activity in nS)
Nurhan,
I never had this error code. However, I observed that some data export features in Matlab may work differently on different platforms. This code was written and used on the XP machine. If you have Vista or Mac, that could be the cause...
This code seems easy to apply but when I started to try it gives me an error below;
Caught std::exception Exception message is:
Access violation - no RTTI data!
I couldn't get rid of it as I tried various solutions..
Could anyone one help me? I am using MATLAB 2006b...
bdf raeder
need help and informations