image thumbnail

EEG bdf reader

已经rsion 1.0.0.0 (1.7 KB) by Gleb Tcheslavski
This code reads EEG data from a 'bdf' file
3.3
6评级

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...

Cite As

Gleb Tcheslavski (2021).EEG bdf reader(//www.tatmou.com/matlabcentral/fileexchange/13070-eeg-bdf-reader), MATLAB Central File Exchange. Retrieved.

Comments and Ratings (11)

helia mb

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 ?

Masoud Ghodrati

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

reeti pandey

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

Guillaume

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)

Gleb Tcheslavski

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...

Nurhan

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...

Nurhan

taha rami

bdf raeder

mous nilda

need help and informations

hossein khaksar

MATLAB Release Compatibility
Created with R2006a
兼容任何释放
Platform Compatibility
窗户 macOS Linux

Community Treasure Hunt

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

开始狩猎!