[FieldTrip] Import .bdf data obtained from a BioSemi system

Kyla Malayang kylam at mun.ca
Wed Sep 29 14:19:37 CEST 2021


Hello everyone,

I'm trying to import .bdf data from a BioSemi system using
Fieldtrip functions but get an error message stating:
Error in ft_preprocessing (line 404)
hdr = ft_read_header(cfg.headerfile, headeropt{:});

This was the code I ran:

%----------------------------------------------------------Before beginning

clear variables

filepath = addpath('/Users/kmgm/Library/Application
Support/MathWorks/MATLAB Add-Ons/Collections/FieldTrip');



filename = 'Pilot010.bdf';

cfg.dataset = [filepath filename];

cfg.channel = 1:64;

cfg.reref = 'yes';

cfg.refchannel = 'EEG';                         %Average of all EEG channels

cfg.demean = 'yes';

cfg.detrend = 'yes';
data = ft_preprocessing(cfg);

Any help would be greatly appreciated!

-- 
Sincerely,
Kyla
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.science.ru.nl/pipermail/fieldtrip/attachments/20210929/19bdeff3/attachment.htm>


More information about the fieldtrip mailing list