<div>Hi Robert,</div>
<div>Thank you very much for the information.</div>
<div>In the mean time, I finally succeed in reading all brainvision files (yes, there should have been a problem with bv format, because I had to change the name of a field - to nChans- in the m file).</div>
<div> </div>
<div>However, after rereading the documentation, I still have a local (and very basic) question on the cfg for definetrial: what is a "dataset" when we are using brainvision files? Can it be replaced by the header file, the data file and the event/marker file? If so, what should bi included in the cfg (cfg.datafile, cfg.headerfile, cfg.event?) I tried that but it did not work out.</div>

<div> </div>
<div>Concerning the arrangement of data so as to match definetrial output, I also did this, based upon the documentation. However, this solution does not give a prestimulus time, to be seen in each trial as referenced to a negative time (eg: time -0.2 up to time 0) . I believe this is necessary to view the baseline later.</div>

<div> </div>
<div>Thank you again.</div>
<div>Best regards,</div>
<div>Susana Silva<br><br> </div>
<div><span class="gmail_quote">On 5/6/08, <b class="gmail_sendername">Robert Oostenveld</b> <<a href="mailto:r.oostenveld@fcdonders.ru.nl">r.oostenveld@fcdonders.ru.nl</a>> wrote:</span>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">Hi Susana,<br><br>Your problem might well be to the file being exported in a non-standard brainvision format.<span class="q"><br>
<br><br>On 27 Apr 2008, at 0:01, Susana Silva wrote:<br>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px; BORDER-LEFT: #ccc 1px solid">My questions are:<br>-       In my position – someone who has eep files and brainvision files,<br>what is the most simple option: try to use eep or brainvision (at the<br>
moment, I can use neither!)<br></blockquote><br></span>Reading the eep files requires mex files, and that requires additional software from ANT (a librarry with the low0-level routines). Since that software is not open source, it is not possible to recompile the MEX file on your platform. You could complain about the file format with ANT and/or get another Matlab version (an old matlab on windows should work). As such, the brainvision format seems the most pragmatic solution to me.<br>
<br>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px; BORDER-LEFT: #ccc 1px solid">-       Can you give me an example of a trial definition based upon a<span class="q"><br>brainvision file, let us say s1.eeg (data), s1.vhdr , s1.vmrk, where 's33'<br>
(eventvalue) is the 'Stimulus' (eventtype)?<br></span></blockquote><br>Example trial definitions are given in the documentation on the fieldtrip website.<br><br>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px; BORDER-LEFT: #ccc 1px solid">-       In case I can not do the trial definition, how exactly should I<span class="q"><br>arrange my data so that they are equivalent to the output of "definetrial"?<br>
</span></blockquote><br>You should specify a trl matrix as cfg.trl to the preprocessing function, that matrrix is explained in the documentation on the website and in the definetrial function help.<br><br>best regards,<br>
<span class="sg">Robert</span> 
<div><span class="e" id="q_119be4bd810bd3cf_8"><br><br>----------------------------------<br>The aim of this list is to facilitate the discussion between users of the FieldTrip  toolbox, to share experiences and to discuss new ideas for MEG and EEG analysis. See also <a onclick="return top.js.OpenExtLink(window,event,this)" href="http://listserv.surfnet.nl/archives/fieldtrip.html" target="_blank">http://listserv.surfnet.nl/archives/fieldtrip.html</a> and <a onclick="return top.js.OpenExtLink(window,event,this)" href="http://www.ru.nl/fcdonders/fieldtrip" target="_blank">http://www.ru.nl/fcdonders/fieldtrip</a>.<br>
</span></div></blockquote></div><br>
<p>----------------------------------</p>
<p>The aim of this list is to facilitate the discussion between users of the FieldTrip  toolbox, to share experiences and to discuss new ideas for MEG and EEG analysis.</p>
<p>  http://listserv.surfnet.nl/archives/fieldtrip.html</p>
<p>  http://www.ru.nl/fcdonders/fieldtrip/</p>