[FieldTrip] problem reading the .bdf
Schoffelen, J.M. (Jan Mathijs)
jan.schoffelen at donders.ru.nl
Sat Apr 3 12:04:42 CEST 2021
Hi Mahmoud,
I suggest that you start by reading the documentation on the website, e.g. the getting started section on fieldtriptoolbox.org<http://fieldtriptoolbox.org>
Also, if you are a first time user of fieldtrip, I suggest you start reading in the data using the ft_preprocessing function, rather than ft_read_header/ft_read_data.
Also, the error you get is related to basic matlab syntax: the error says that you should use key-value pairs in the input. Perhaps if you google in the documentation of matlab you will find out what you could do to fix it.
Best wishes,
Jan-Mathijs
On 2 Apr 2021, at 21:09, Mahmoud <zeydabadi at gmail.com<mailto:zeydabadi at gmail.com>> wrote:
I have a .bdf file that I want to read in matlab usig ft_read_header()
and ft_read_data().
I have defined a list of channels as
channels = ["CH1" , "CH2", "CH3", "CH4", "CH5"]
When I try to read the header I get the following error:
hdr = ft_read_header(filename, chanindx= channels);
Error using ft_getopt
the first input should contain key-value pairs
Error in ft_read_header (line 183)
headerformat = ft_getopt(varargin, 'headerformat');
Can you please let me know what am I doing wrong? I read the help for
ft_read_header() but couldn't figure it out.
Thank you!
Mahmoud
_______________________________________________
fieldtrip mailing list
https://mailman.science.ru.nl/mailman/listinfo/fieldtrip
https://doi.org/10.1371/journal.pcbi.1002202
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.science.ru.nl/pipermail/fieldtrip/attachments/20210403/b9af5739/attachment.htm>
More information about the fieldtrip
mailing list