<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<style type="text/css" style="display:none;"> P {margin-top:0;margin-bottom:0;} </style>
</head>
<body dir="ltr">
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
Hi, </div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
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: </div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 10.0px Courier">cfg <span>                       
</span>= [];</p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 10.0px Courier">cfg.dataset <span>
                </span>= <span style="color: #a020f0">'Subject01.ds'</span>;</p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 10.0px Courier">cfg.trialfun<span>               
</span>= <span style="color: #a020f0">'ft_trialfun_general'</span>; <span style="color: #3c763d">
% this is the default</span></p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 10.0px Courier">cfg.trialdef.eventtype<span>     
</span>= <span style="color: #a020f0">'backpanel trigger'</span>;</p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 10.0px Courier; color: #3c763d">
<span style="color: #000000">cfg.trialdef.eventvalue = [3 5 9]; </span>% the values of the stimulus trigger for all three conditions</p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 10.0px Courier; color: #3c763d">
%<span>  </span>(3: fully incongruent (FIC), 5: initially congruent (IC), 9: fully congruent (FC))</p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 10.0px Courier">cfg.trialdef.prestim = 1;
<span style="color: #3c763d">% in secs</span></p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 10.0px Courier">cfg.trialdef.poststim = 2;
<span style="color: #3c763d">% in secs</span></p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 10.0px Courier; color: #3c763d; min-height: 12.0px">
<span> </span></p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 10.0px Courier">cfg = ft_definetrial(cfg);</p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Courier; min-height: 14.0px">
<br>
</p>
<br>
<b>I am receiving this message:</b></div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<span>evaluating trialfunction 'ft_trialfun_general'<br>
</span>
<div>reading the header from 'Subject01.ds'<br>
</div>
<div><span style="color: rgb(200, 38, 19);">Error using ft_read_header (line 2604)</span><br>
</div>
<div><span style="color: rgb(200, 38, 19);">unsupported header format "unknown"</span><br>
</div>
<div><br>
</div>
<div><span style="color: rgb(200, 38, 19);">Error in ft_trialfun_general (line 84)</span><br>
</div>
<div><span style="color: rgb(200, 38, 19);">  hdr = ft_read_header(cfg.headerfile, 'headerformat', cfg.headerformat);</span><br>
</div>
<div><br>
</div>
<div><span style="color: rgb(200, 38, 19);">Error in ft_definetrial (line 185)</span><br>
</div>
<span style="color: rgb(200, 38, 19);">    [trl, event] = feval(cfg.trialfun, cfg);</span><br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<span style="color: rgb(200, 38, 19);"><br>
</span></div>
<div><font color="#000000" face="Calibri, Arial, Helvetica, sans-serif" size="3">​Could someone please help me fix this problem? </font><font color="#000000" face="Calibri, Arial, Helvetica, sans-serif">Have been trying to understand it myself but with no luck.</font><font color="#000000" face="Calibri, Arial, Helvetica, sans-serif" size="3">Thank
 you!</font><br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<span style="color: rgb(0, 0, 0);"><br>
</span></div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<span style="color: rgb(0, 0, 0);">Does Moolenaar</span></div>
</body>
</html>