[FieldTrip] hdr format correction

f.augusti at unsw.edu.au f.augusti at unsw.edu.au
Fri Nov 18 00:59:05 CET 2016


Hi,
I have some problems with the correct format of the reader. My data has been recorded in poly32 format and read by tms_read function. My header contains the following fields, but for some reason it's not being read from ft_definetrials and no event type are recognised:

data.hdr.filename= 2048
data.hdr.path=67
data.hdr.chantype= 66x1 cell
data.hdr.chanunit=1x67 cell
data.hdr.label=68x1 cell
data.hdr.nTrials=1
data.hdr.nSamplesPre=0
data.hdr.nSamples =776220
data.hdr.nChans=67
data.hdr.Fs=2048

>>cfg = [];
cfg.dataset            = 'FAonNC16112016.mat';
cfg.trialdef.eventtype = '?';
ft_definetrial(cfg);

evaluating trialfunction 'ft_trialfun_general'
Error using ft_read_header (line 2248)
unsupported header format "matlab"

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

Error in ft_definetrial (line 177)
    [trl, event] = feval(cfg.trialfun, cfg);
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.science.ru.nl/pipermail/fieldtrip/attachments/20161117/a7d9c8ee/attachment-0001.html>


More information about the fieldtrip mailing list