[FieldTrip] problem in pre-processing stage

Shlomit Beker shlomitbeker at gmail.com
Thu Aug 13 07:59:04 CEST 2015


Double check the name and path defined in your script, that refer to your data. It tends to cause this kind of error. 




‫ב-13 באוג 2015, בשעה 08:21, ‏Seyedeh Samane Shojaei <samane.shojaie at gmail.com> כתב/ה:‬

> 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:
> 
> addpath('FielTrip\fieldtrip-lite-20150810\fieldtrip-20150810')
> addpath('FielTrip\Tutorial\ArtifactRemoval\ArtifactRemoval.ds')
> ft_defaults
> % 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.
> Regards,
> Samane
> _______________________________________________
> fieldtrip mailing list
> fieldtrip at donders.ru.nl
> http://mailman.science.ru.nl/mailman/listinfo/fieldtrip
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.science.ru.nl/pipermail/fieldtrip/attachments/20150813/703a034b/attachment-0002.html>


More information about the fieldtrip mailing list