[FieldTrip] problem in pre-processing stage

Stephen Whitmarsh stephen.whitmarsh at ki.se
Thu Aug 13 08:04:22 CEST 2015

Hi Seyede,

Have you tried providing the full path to the dataset, e.g. cfg.dataset = 'C:/data/MEG/ArtifactRemoval.ds'?
Adding the dataset directory to the path as you did, doesn't make those files accessible to MATLAB when loading data etc. I would remove that.

If its still doesn't work, try to work through the initial steps here, and see where it breaks:


P.s. Of course you could run your script from the dataset directory but this is *highly* discouraged and will result in problems further down the line.

From: fieldtrip-bounces at science.ru.nl [fieldtrip-bounces at science.ru.nl] on behalf of Seyedeh Samane Shojaei [samane.shojaie at gmail.com]
Sent: 13 August 2015 07:21
To: fieldtrip at science.ru.nl
Subject: [FieldTrip] problem in pre-processing stage

Dear all,

I am a new user of FieldTrip, I got problem at the first stage of reading data. I am using Matlab R2011a, windows 7, 64 bit.  when I run my code, the following problem appears:

% ft_preprocessing of example dataset
cfg = [];
cfg.dataset = 'ArtifactRemoval.ds';
cfg.trialdef.eventtype = 'trial';
cfg = ft_definetrial(cfg);

Warning: could not determine filetype of ArtifactRemoval.ds
> In ft_filetype at 1221
  In utilities\private\dataset2files at 42
  In ft_checkconfig at 541
  In ft_definetrial at 128
  In ICAremoveEOG at 9
Warning: no trialfun was specified, using ft_trialfun_general
> In ft_definetrial at 135
  In ICAremoveEOG at 9
evaluating trialfunction 'ft_trialfun_general'
??? Error using ==> ft_read_header at 2053
unsupported header format (unknown)

Error in ==> ft_trialfun_general at 78
hdr = ft_read_header(cfg.headerfile, 'headerformat', cfg.headerformat);

Error in ==> ft_definetrial at 174
    [trl, event] = feval(cfg.trialfun, cfg);

Error in ==> ICAremoveEOG at 9
cfg = ft_definetrial(cfg);

It is appreciated if you could help me.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.science.ru.nl/pipermail/fieldtrip/attachments/20150813/99254b4e/attachment-0002.html>

More information about the fieldtrip mailing list