[FieldTrip] Error loading 4D-data

Julian Keil julian.keil at gmail.com
Thu Jan 12 15:18:16 CET 2012


Hi,

I have an error loading a 4D-dataset:

??? SWITCH expression must be a scalar or string constant.

Error in ==> read_4d_hdr at 60
  switch format

Error in ==> ft_read_header at 164
    orig            = read_4d_hdr(datafile);

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

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

It looks like field trip can't open the header for the datafile as:

K>> header.header_data
ans = 
     FileType: []
    file_type: ''

and:

K>> header_end
header_end =
   581365760
K>> header_offset
header_offset =
   6.4740e+15

However, a dataset from the same subject recorded 5 minutes earlier could be loaded just fine.
Does anyone have an idea what is wrong here and maybe how to fix it?

Thanks a lot!

Julian


Dipl. Psych. Julian Keil

OBOB-Lab
University of Konstanz
Department of Psychology
P.O. Box D25
78457 Konstanz
Germany

Tel: ++49 - (0)7531 - 88 42 50
Fax: ++49 - (0)7531 - 88 28 91
Email: julian.keil at uni-konstanz.de
Homepage: http://www.uni-konstanz.de/obob







-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.science.ru.nl/pipermail/fieldtrip/attachments/20120112/c4eeb350/attachment.html>


More information about the fieldtrip mailing list