<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Hi,<div><br></div><div>I have an error loading a 4D-dataset:</div><div><br></div><div>??? SWITCH expression must be a scalar or string constant.<br><br>Error in ==> read_4d_hdr at 60<br>  switch format<br><br>Error in ==> ft_read_header at 164<br>    orig            = read_4d_hdr(datafile);<br><br>Error in ==> trialfun_general at 55<br>hdr = ft_read_header(cfg.headerfile, 'headerformat',<br>cfg.headerformat);<br><br>Error in ==> ft_definetrial at 166<br>    [trl, event] = feval(cfg.trialfun, cfg);</div><div><br></div><div>It looks like field trip can't open the header for the datafile as:</div><div><br></div><div>K>> header.header_data<br>ans = <br>     FileType: []<br>    file_type: ''</div><div><br></div><div>and:</div><div><br></div><div>K>> header_end<br>header_end =<br>   581365760<br>K>> header_offset<br>header_offset =<br>   6.4740e+15</div><div><br></div><div>However, a dataset from the same subject recorded 5 minutes earlier could be loaded just fine.</div><div>Does anyone have an idea what is wrong here and maybe how to fix it?</div><div><br></div><div>Thanks a lot!</div><div><br></div><div>Julian</div><div><br></div><div><br></div><span class="Apple-style-span" style="font-size: 13px; font-weight: bold; ">Dipl. Psych. Julian Keil</span><br><div apple-content-edited="true"><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-style: normal; font-variant: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; "><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-style: normal; font-variant: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-style: normal; font-variant: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-style: normal; font-variant: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div style="font-size: 12px; font-weight: normal; "><div><font class="Apple-style-span" size="3"><span class="Apple-style-span" style="font-size: 13px; "><br class="khtml-block-placeholder"></span></font></div><div><i>OBOB-Lab</i></div><div>University of Konstanz</div><div>Department of Psychology</div><div>P.O. Box D25</div><div>78457 Konstanz</div><div>Germany</div><div><br></div><div><b style="font-weight: bold; ">Tel</b>: ++49 - (0)7531 - 88 42 50</div><div><b style="font-weight: bold; ">Fax</b>: ++49 - (0)7531 - 88 28 91</div><div><b style="font-weight: bold; ">Email: <span class="Apple-style-span" style="font-weight: normal; "><a href="mailto:julian.keil@uni-konstanz.de">julian.keil@uni-konstanz.de</a></span></b></div><div><b style="font-weight: bold; ">Homepage</b>: <a href="http://www.uni-konstanz.de/obob">http://www.uni-konstanz.de/obob</a></div></div><div style="font-size: 12px; font-weight: normal; "><br></div><div style="font-size: 12px; font-weight: normal; "><br></div></div></span><br class="Apple-interchange-newline"></div></span><br class="Apple-interchange-newline"></div></span><br class="Apple-interchange-newline"></span><br class="Apple-interchange-newline">
</div>
<br></body></html>