[FieldTrip] Help

Schoffelen, J.M. (Jan Mathijs) jan.schoffelen at donders.ru.nl
Thu Mar 5 07:46:17 CET 2020


Dear Does,

This error looks as if the dataset cannot be found. You either need to call ft_definetrial from within the directory that ’sees’ Subject01.ds, or use a full path to the file, e.g. /data/somefolder/somotherolder/yetanotherfolder/Subject01.ds’

Best wishes,
Jan-Mathijs

On 4 Mar 2020, at 15:54, Moolenaar Van Der Does, Does <does.moolenaar-van-der-does19 at imperial.ac.uk<mailto:does.moolenaar-van-der-does19 at imperial.ac.uk>> wrote:

Hi,

I am relatively new to coding and FieldTrip, so am going through the tutorials on the website. I am currently on "trigger-based trial selection". I have downloaded the correct data and added it onto my matlab pathway as well as the FieldTrip tool box (using ft_default to ensure not all of the folders are added onto the path). However, after the first bit of code:
cfg                         = [];
cfg.dataset                 = 'Subject01.ds';
cfg.trialfun                = 'ft_trialfun_general'; % this is the default
cfg.trialdef.eventtype      = 'backpanel trigger';
cfg.trialdef.eventvalue = [3 5 9]; % the values of the stimulus trigger for all three conditions
%  (3: fully incongruent (FIC), 5: initially congruent (IC), 9: fully congruent (FC))
cfg.trialdef.prestim = 1; % in secs
cfg.trialdef.poststim = 2; % in secs



cfg = ft_definetrial(cfg);


I am receiving this message:

evaluating trialfunction 'ft_trialfun_general'
reading the header from 'Subject01.ds'
Error using ft_read_header (line 2604)
unsupported header format "unknown"

Error in ft_trialfun_general (line 84)
  hdr = ft_read_header(cfg.headerfile, 'headerformat', cfg.headerformat);

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

​Could someone please help me fix this problem? Have been trying to understand it myself but with no luck.Thank you!

Does Moolenaar
_______________________________________________
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/20200305/c4fba822/attachment.htm>


More information about the fieldtrip mailing list