Can you import .bdf files into MATLAB without using .edf converter?

Post Reply
evargas
Posts: 2
Joined: Sat Jan 22, 2022 8:50 pm

Can you import .bdf files into MATLAB without using .edf converter?

Post by evargas »

Hello Everyone,

I've used EEGLAB to analyze data collected from our 64 channel BioSemi EEG system but am now trying use fieldtrip functions to do beamformer analysis.

I am wondering if there is a way to import .bdf files into matlab without using the .edf convertor? I am trying to avoid the issues that Coen has described on previous threads — "Using the BDF --> EDF converter to rescale the data is possible, but not recommended because you convert 24 bit data to 16 bit (LSB is increased) and you will loose DC information (high pass is applied to compress the data to a 16 bit range)"

If this approach isn't recommended, what is the best way to import .bdf directly into MATLAB? I haven't been able to find any other solutions without using the converter from (http://www.biosemi.com/download/).

Thanks in advance for the help and insight!

Best,
Enrique

elem
Posts: 2
Joined: Fri Mar 08, 2024 3:51 pm

Re: Can you import .bdf files into MATLAB without using .edf converter?

Post by elem »

I don't actually use the .edf converter to read the .bdf data in Fieldtrip. I just use the way they suggest on the website:
for instance:
filename 'yourfile.bdf';
cfg = [];
cfg.dataset = filename;
cfg.trialdef.eventtype = 'STATUS'
cfg.trialdef.eventvalue = [1 2];
cfg.trialdef.prestim = 0.2;
cfg.trialdef.poststim = 0.8;
cfg = ft_definetrial(cfg);

see:
https://www.fieldtriptoolbox.org/gettin ... converters.

Post Reply