<html><head><base href="x-msg://16/"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Hi Ivano<div><br></div><div>Good that it works.</div><div><br></div><div>The EDF format is written in blocks. Depending on the software that wrote the EDF file, those blocks might represent experimental trials or might represent subsequent segments from a continuous data stream (which usually contains triggers to indicate the timing of stimuli and responses). </div><div><br></div><div>FieldTrip by default represents each EDF datablock as a trial, and that is reflected in the events (from ft_read_event). With the option cfg.continuous=yes you can tell fieldtrip that it is a continuous recording and that it should not care about the blocks. And you can indeed safely ignore the events of type 'trial' in the event structure.</div><div><br></div><div>best</div><div>Robert </div><div><br><div><div>On 20 Mar 2011, at 13:24, Ivano Triggiani wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><span class="Apple-style-span" style="border-collapse: separate; font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: 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; font-size: medium; "><div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font-family: arial, helvetica, sans-serif; font-size: 10pt; ">Hi,<br><br>just wanna tell you that changing MATLAB version now everything works!!! Actually I'm using a 2010 version (own by a friend of mine) and everything seems to work.<br>However it coul be useful for other users to know that reading edf files, fieldtrip uses a particular field of the edf header called "<b>number of data records"<span class="Apple-converted-space"> </span></b>(<span class="Apple-converted-space"> </span><a href="http://www.edfplus.info/specs/edf.html">http://www.edfplus.info/specs/edf.html</a><span class="Apple-converted-space"> </span>) and another called " duration of data records" that not correspond (at least for my files...) at real number of events occurred. So in my trigger function I have to ignore those informations (or change header of my file!)<br>Thanks to all.<br>Ivano<br><br><br>------------------------------------------------------------------------<br><br><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">"No man can wear one face to himself<span class="Apple-converted-space"> </span><br>and another to the multitude,<br>without finally getting bewildered<span class="Apple-converted-space"> </span><br>as to which one is true."</div><br><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">Nathaniel Hawthorne<div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><br></div></div></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">http://mailman.science.ru.nl/mailman/listinfo/fieldtrip</a></div></span></blockquote></div><br></div></body></html>