[FieldTrip] Error loading 4D-data

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


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',

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: ''


K>> header_end
header_end =
K>> header_offset
header_offset =

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!


Dipl. Psych. Julian Keil

University of Konstanz
Department of Psychology
P.O. Box D25
78457 Konstanz

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