<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">
<span style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0);" class="">Dear Does,</span>
<div class="" style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0);"><br class="">
</div>
<div class="" style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0);">This error looks as if the dataset cannot be found. You either need to call ft_definetrial from within the directory that ’sees’ Subject01.ds, or use a full path to the file, e.g. /data/somefolder/somotherolder/yetanotherfolder/Subject01.ds’</div>
<div class="" style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0);"><br class="">
</div>
<div class="" style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0);">Best wishes,</div>
<div class="" style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0);">Jan-Mathijs</div>
<div><br class="">
<blockquote type="cite" class="">
<div class="">On 4 Mar 2020, at 15:54, Moolenaar Van Der Does, Does <<a href="mailto:does.moolenaar-van-der-does19@imperial.ac.uk" class="">does.moolenaar-van-der-does19@imperial.ac.uk</a>> wrote:</div>
<br class="Apple-interchange-newline">
<div class="">
<div style="font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none; font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt;" class="">
Hi, </div>
<div style="font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none; font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt;" class="">
<br class="">
</div>
<div style="font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none; font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt;" class="">
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-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none; font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt;" class="">
<div style="margin: 0px; font-style: normal; font-variant-caps: normal; font-weight: normal; font-stretch: normal; font-size: 10px; line-height: normal; font-family: Courier;" class="">
cfg<span class="Apple-converted-space"> </span><span class="">                       <span class="Apple-converted-space"> </span></span>= [];</div>
<div style="margin: 0px; font-style: normal; font-variant-caps: normal; font-weight: normal; font-stretch: normal; font-size: 10px; line-height: normal; font-family: Courier;" class="">
cfg.dataset<span class="Apple-converted-space"> </span><span class="">               <span class="Apple-converted-space"> </span></span>=<span class="Apple-converted-space"> </span><span style="color: rgb(160, 32, 240);" class="">'Subject01.ds'</span>;</div>
<div style="margin: 0px; font-style: normal; font-variant-caps: normal; font-weight: normal; font-stretch: normal; font-size: 10px; line-height: normal; font-family: Courier;" class="">
cfg.trialfun<span class="">               <span class="Apple-converted-space"> </span></span>=<span class="Apple-converted-space"> </span><span style="color: rgb(160, 32, 240);" class="">'ft_trialfun_general'</span>;<span class="Apple-converted-space"> </span><span style="color: rgb(60, 118, 61);" class="">%
 this is the default</span></div>
<div style="margin: 0px; font-style: normal; font-variant-caps: normal; font-weight: normal; font-stretch: normal; font-size: 10px; line-height: normal; font-family: Courier;" class="">
cfg.trialdef.eventtype<span class="">     <span class="Apple-converted-space"> </span></span>=<span class="Apple-converted-space"> </span><span style="color: rgb(160, 32, 240);" class="">'backpanel trigger'</span>;</div>
<div style="margin: 0px; font-style: normal; font-variant-caps: normal; font-weight: normal; font-stretch: normal; font-size: 10px; line-height: normal; font-family: Courier; color: rgb(60, 118, 61);" class="">
<span style="" class="">cfg.trialdef.eventvalue = [3 5 9];<span class="Apple-converted-space"> </span></span>% the values of the stimulus trigger for all three conditions</div>
<div style="margin: 0px; font-style: normal; font-variant-caps: normal; font-weight: normal; font-stretch: normal; font-size: 10px; line-height: normal; font-family: Courier; color: rgb(60, 118, 61);" class="">
%<span class=""> <span class="Apple-converted-space"> </span></span>(3: fully incongruent (FIC), 5: initially congruent (IC), 9: fully congruent (FC))</div>
<div style="margin: 0px; font-style: normal; font-variant-caps: normal; font-weight: normal; font-stretch: normal; font-size: 10px; line-height: normal; font-family: Courier;" class="">
cfg.trialdef.prestim = 1;<span class="Apple-converted-space"> </span><span style="color: rgb(60, 118, 61);" class="">% in secs</span></div>
<div style="margin: 0px; font-style: normal; font-variant-caps: normal; font-weight: normal; font-stretch: normal; font-size: 10px; line-height: normal; font-family: Courier;" class="">
cfg.trialdef.poststim = 2;<span class="Apple-converted-space"> </span><span style="color: rgb(60, 118, 61);" class="">% in secs</span></div>
<p style="margin: 0px; font-style: normal; font-variant-caps: normal; font-weight: normal; font-stretch: normal; font-size: 10px; line-height: normal; font-family: Courier; color: rgb(60, 118, 61); min-height: 12px;" class="">
<span class=""> </span><br class="webkit-block-placeholder">
</p>
<div style="margin: 0px; font-style: normal; font-variant-caps: normal; font-weight: normal; font-stretch: normal; font-size: 10px; line-height: normal; font-family: Courier;" class="">
cfg = ft_definetrial(cfg);</div>
<div style="margin: 0px; font-style: normal; font-variant-caps: normal; font-weight: normal; font-stretch: normal; font-size: 12px; line-height: normal; font-family: Courier; min-height: 14px;" class="">
<br class="">
</div>
<br class="">
<b class="">I am receiving this message:</b></div>
<div style="font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none; font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt;" class="">
<br class="">
</div>
<div style="font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none; font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt;" class="">
<span class="">evaluating trialfunction 'ft_trialfun_general'<br class="">
</span>
<div class="">reading the header from 'Subject01.ds'<br class="">
</div>
<div class=""><span style="color: rgb(200, 38, 19);" class="">Error using ft_read_header (line 2604)</span><br class="">
</div>
<div class=""><span style="color: rgb(200, 38, 19);" class="">unsupported header format "unknown"</span><br class="">
</div>
<div class=""><br class="">
</div>
<div class=""><span style="color: rgb(200, 38, 19);" class="">Error in ft_trialfun_general (line 84)</span><br class="">
</div>
<div class=""><span style="color: rgb(200, 38, 19);" class="">  hdr = ft_read_header(cfg.headerfile, 'headerformat', cfg.headerformat);</span><br class="">
</div>
<div class=""><br class="">
</div>
<div class=""><span style="color: rgb(200, 38, 19);" class="">Error in ft_definetrial (line 185)</span><br class="">
</div>
<span style="color: rgb(200, 38, 19);" class="">    [trl, event] = feval(cfg.trialfun, cfg);</span><br class="">
</div>
<div style="font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none; font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt;" class="">
<span style="color: rgb(200, 38, 19);" class=""><br class="">
</span></div>
<div style="caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 14px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none;" class="">
<font face="Calibri, Arial, Helvetica, sans-serif" size="3" class="">​Could someone please help me fix this problem? </font><font face="Calibri, Arial, Helvetica, sans-serif" class="">Have been trying to understand it myself but with no luck.</font><font face="Calibri, Arial, Helvetica, sans-serif" size="3" class="">Thank
 you!</font><br class="">
</div>
<div style="font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none; font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt;" class="">
<span style="" class=""><br class="">
</span></div>
<div style="font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none; font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt;" class="">
<span style="" class="">Does Moolenaar</span></div>
<span style="caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 14px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none; float: none; display: inline !important;" class="">_______________________________________________</span><br style="caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 14px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none;" class="">
<span style="caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 14px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none; float: none; display: inline !important;" class="">fieldtrip
 mailing list</span><br style="caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 14px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none;" class="">
<a href="https://mailman.science.ru.nl/mailman/listinfo/fieldtrip" style="font-family: Helvetica; font-size: 14px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" class="">https://mailman.science.ru.nl/mailman/listinfo/fieldtrip</a><br style="caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 14px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none;" class="">
<a href="https://doi.org/10.1371/journal.pcbi.1002202" style="font-family: Helvetica; font-size: 14px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" class="">https://doi.org/10.1371/journal.pcbi.1002202</a></div>
</blockquote>
</div>
<br class="">
</body>
</html>