<html><head><meta http-equiv="Content-Type" content="text/html charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;"><div>Dear Wang Jing,</div><div><br></div><div>one way to get you started would be:</div><div>1.Read the ascii delimited data into matlab: <a href="http://www.mathworks.de/help/matlab/ref/dlmread.html">http://www.mathworks.de/help/matlab/ref/dlmread.html</a></div><div><br></div><div>2.Create a data structure FieldTrip can deal with. Something along this lines:</div><div><br></div><div><div style="margin: 0px; font-size: 8px; font-family: Courier; color: rgb(37, 153, 45);"><span style="color: #000000">tmpdat.label={</span><span style="color: #b245f3">'C3'</span><span style="color: #000000"> ;</span><span style="color: #b245f3">'C4'</span><span style="color: #000000">};</span>% subfield with your labels</div><div style="margin: 0px; font-size: 8px; font-family: Courier; color: rgb(37, 153, 45);"><span style="color: #000000">fsample=1000; </span>% for a sampling rate of 1000 this would be one second</div><div style="margin: 0px; font-size: 8px; font-family: Courier;">tmpdat.time = {nan(1,1000)};<span style="color: #25992d">% create your time vector</span></div><div style="margin: 0px; font-size: 8px; font-family: Courier;">tmpdat.time{1}=(1:1:1000);<span style="color: #25992d">% fill the time vector</span></div><div style="margin: 0px; font-size: 8px; font-family: Courier;">tmpdat.trial = {nan(2,length(tmpdat.time{1}))};</div><div style="margin: 0px; font-size: 8px; font-family: Courier;"><br></div><div>3. Fill the NaN fields with your data from step 1.</div><div><br></div><div>Good luck</div><div>tzvetan</div><div><br></div></div><div><br></div><div><br><br class="Apple-interchange-newline"><blockquote type="cite"><div dir="ltr">Hi,<div><br></div><div>I am a newbie in FieldTrip. I want to calculate wpli (weighted phase lag index) of two time series, e.g. EEG collected from C3 and C4. The data are ASCII format. Could you indicate me how to proceed? Thanks a lot!</div><div><br></div><div>Regards,</div><div>Wang Jing</div></div>
_______________________________________________<br>fieldtrip mailing list<br><a href="mailto:fieldtrip@donders.ru.nl">fieldtrip@donders.ru.nl</a><br>http://mailman.science.ru.nl/mailman/listinfo/fieldtrip</blockquote></div><br></body></html>