[FieldTrip] problem in importing my data in fieldtrip

Moumita bhowmick bhowmickmoumita1 at gmail.com
Mon Jun 20 12:19:55 CEST 2022


Hello,
I am a novice in fieldtrip. Trying to learn it for my EEG analysis, on my
own. I don't have any local group with whom I can discuss the problems I am
facing here. I am trying to import continuous data into the fieldtrip for
ft_preprocessing. Since I need to do ft_definetrial first for which I need
to know the eventtype and eventvalues first, I tried calling ft_definetrial
with cfg.dataset.
I gave the following command:
cfg = [];
cfg.dataset = '1_MD_1_edtd.set';
cfg.trialdef.eventtype = '?';
ft_definetrial(cfg);

But I am getting the following error:
Error using ft_trialfun_show (line 56)
file or directory '1_MD_1_edtd.set' does not exist

Error in ft_definetrial (line 199)
 [trl, event] = feval(cfg.trialfun, cfg);

I then tried specifying the filepath with the following command:
cfg = [];
cfg.dataset = 'F:\data_fldtrp\1_MD_1_epochs.set';
cfg.trialdef.eventtype = '?';
ft_definetrial(cfg);

But I am still getting the same error. How to write cfg.dataset =
'F:\data_fldtrp\1_MD_1_epochs.set'; so that fieldtrip can find the file?

Will be highly obliged if you can help me understand how to import data
into fieldtrip.
Thanking you,
Moumita
-- 
Moumita Bhowmick
PhD student
School of Cognitive Science,
Jadavpur University
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.science.ru.nl/pipermail/fieldtrip/attachments/20220620/7550d8b5/attachment.htm>


More information about the fieldtrip mailing list