<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Hi inna,<div><br></div><div>never used this method, but repetitions means you need single trials (it's not an averaged time-series you are talking about, right?).</div><div><br></div><div>here some suggestions:</div><div><ul><li>when importing your data from Excel (how did that happen? :-)) into matlab, make a data structure that looks like one following ft_preprocessing. </li><li>then run ft_freqanalysis with output "powandcsd" and keeptrials "yes" as options (and other options of course). this is at least what i assume after looking ft_connectivityanalysis</li><li>then enter the structure which results from your former step into ft_connectivityanalysis with method specified as "wpli_debiased"</li></ul></div><div>perhaps wpli-experts want to correct me if i got something wrong.</div><div><br></div><div>good luck,</div><div>n</div><div><br></div><div><br></div><div><br></div><div><br><div><div>On 14.03.2013, at 20:41, McGowin, Inna wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite">Hello fieldtrippers!<br><br>I would like to calculate wPLI (weighted phase lag index) for two time-series (created by a beamformer). <br>It's described here: <a href="http://fieldtrip.fcdonders.nl/reference/ft_connectivity_wpli">http://fieldtrip.fcdonders.nl/reference/ft_connectivity_wpli</a><br>
What do <b>repetitions </b>mean in input argument for the function?<br><br>I have the data in a text or Excel format that I could import into Matlab directly: <br>1st column is time, <br>2nd column is 1st source intensities and <br>
3rd column is 2nd source intensities.<br><br>Assuming I get my input data in the correct format, is this a correct line to call the function (I need a debiased wPLI)?<br><pre><font size="4">[wpi, v, n] = ft_connectivity_wpli(input, debias 1)<br>
</font><br><font size="4">Thanks</font>,<br></pre>Inna<br>
_______________________________________________<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></div></body></html>