<div dir="ltr">Dear Vasily<div>I bumped into this site after a quick internet search:</div><div><a href="https://w3.rcc.uchicago.edu/redmine/projects/cacioppo/repository/annotate/spm8_dev/external/ctf/readCTFds.m">https://w3.rcc.uchicago.edu/redmine/projects/cacioppo/repository/annotate/spm8_dev/external/ctf/readCTFds.m</a><br>
</div><div><br></div><div>A function's header therein referes to a CTF reference document, named <span style="color:rgb(85,85,85);font-family:'Liberation Mono',Courier,monospace;font-size:12px;white-space:pre-wrap">PN900-0088:</span></div>
<div><span style="color:rgb(85,85,85);font-family:'Liberation Mono',Courier,monospace;font-size:12px;white-space:pre-wrap"><br></span></div><div>"This format is rigid and readMarkerFile assumes that the MarkerFile has the format</div>
<div>current in October 2006.    The document lists 4 Class Groups, but only CLASSGROUPID=0</div><div>(triggers) and CLASSGROUPID=3 (Manual) are actually used.  read_MArkerFile reads only</div><div>these two groups, but it prints a message if the other groups are encountered.</div>
<div>Trigger markers (CLASSGROUPID=0) have an additional 4 pieces of information supplied:</div><div>BITNUMBER(int), POLARITY(+ or 1),SOURCE(text) and THRESHOLD (float).  FOr</div><div>CLASSGROUPID=3, these fields are left empty."</div>
<div><br></div><div>I hope this helps</div><div>Cristiano</div><div><br></div><div><br></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Mar 18, 2014 at 2:02 PM, Vasily Vakorin <span dir="ltr"><<a href="mailto:vasenka@gmail.com" target="_blank">vasenka@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div dir="ltr"><div><div><div><div>I am trying to modify file MarkerFile.mrk, using function readmarkerfile.m and writeMarkerFile.m.<br>
<br> Function readmarkerfile.m create a structure with four fields:  number_markers, number_samples,  marker_names, trial_times.<br>
<br></div>However, function writeMarkerFile.m requires another field: ClassGroupId (only 0 and 3 are allowed).<br><br></div>Any suggestions on how to create the "right" structure for  writeMarkerFile.m ?<br><br>

</div>Thank you,<br></div>Vasily<br></div>
<br>_______________________________________________<br>
fieldtrip mailing list<br>
<a href="mailto:fieldtrip@donders.ru.nl">fieldtrip@donders.ru.nl</a><br>
<a href="http://mailman.science.ru.nl/mailman/listinfo/fieldtrip" target="_blank">http://mailman.science.ru.nl/mailman/listinfo/fieldtrip</a><br></blockquote></div><br></div></div>