Hi JM,<br><br>Apologize for such a stupid mistake. However, I have amended the typo and the results are the same.  Both cumsumcnt and cumtapcnt returned constant values, 1101 (timepoints) and 3, respectively. I am indebted to your kindness in this matter.<br>
<br>Shen-Mou<br><br><div class="gmail_quote">On Thu, Apr 12, 2012 at 5:37 PM, jan-mathijs schoffelen <span dir="ltr"><<a href="mailto:jan.schoffelen@donders.ru.nl">jan.schoffelen@donders.ru.nl</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word">Hi Shen-Mou,<div><br></div><div>There's a typo in the cfg that you supply to ft_freqanalysis -> cfg.ouput should read cfg.output</div>
<div><br></div><div>BW,</div><div><br></div><div>JM </div><div><br><div><div><div class="h5"><div>On Apr 12, 2012, at 10:57 AM, Shen-Mou Hsu wrote:</div><br></div></div><blockquote type="cite"><div><div class="h5">Dear Users,<br>
<br>I try to calculate the phase locking values following the tutorial and encounter a problem.<br><br>First, I ran freqanalysis as follows:<br>        cfg                         = [];<br>        cfg.channel                 = 'EEG';    <br>

        cfg.method                  = 'mtmfft'; <br>        cfg.foi                     = 8:1:120;<br>        cfg.keeptrials              = 'yes';<br>        cfg.ouput                   = 'fourier';<br>

        cfg.tapsmofrq               = 2;<br>        Phase= ft_freqanalysis(cfg, data);<br><br>I noticed that the values in both Phase.cumsumcnt and Phase.cumtapcnt are constant values (BTW, what the meaning of cumsumcnt and cumtapcnt)<br>

<br>Then, I ran connectivity analysis as follows<br>        cfg                         = [];<br>        cfg.method                  = 'plv'; <br>        PLV = ft_connectivityanalysis(cfg, Phase);<br><br>Here, I got empty matrices in both labelcmb: {0x2 cell} and plvspctrm: [0x113 double]<br>

<br>I wondered if there is anything wrong with the previous steps. Many thanks!<br><br>Shen-Mou Hsu<br></div></div>
_______________________________________________<br>fieldtrip mailing list<br><a href="mailto:fieldtrip@donders.ru.nl" target="_blank">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></blockquote>
</div><br><div>
<span style="text-indent:0px;letter-spacing:normal;font-variant:normal;text-align:-webkit-auto;font-style:normal;font-weight:normal;line-height:normal;border-collapse:separate;text-transform:none;font-size:medium;white-space:normal;font-family:Helvetica;word-spacing:0px"><span style="text-indent:0px;letter-spacing:normal;font-variant:normal;text-align:-webkit-auto;font-style:normal;font-weight:normal;line-height:normal;border-collapse:separate;text-transform:none;font-size:medium;white-space:normal;font-family:Helvetica;word-spacing:0px"><div style="word-wrap:break-word">
<span style="text-indent:0px;letter-spacing:normal;font-variant:normal;text-align:-webkit-auto;font-style:normal;font-weight:normal;line-height:normal;border-collapse:separate;text-transform:none;font-size:medium;white-space:normal;font-family:Helvetica;word-spacing:0px"><div style="word-wrap:break-word">
<span style="text-indent:0px;letter-spacing:normal;font-variant:normal;font-style:normal;font-weight:normal;line-height:normal;border-collapse:separate;text-transform:none;font-size:medium;white-space:normal;font-family:Helvetica;word-spacing:0px"><div style="word-wrap:break-word">
<span style="text-indent:0px;letter-spacing:normal;font-variant:normal;font-style:normal;font-weight:normal;line-height:normal;border-collapse:separate;text-transform:none;font-size:medium;white-space:normal;font-family:Helvetica;word-spacing:0px"><div style="word-wrap:break-word">
<span style="text-indent:0px;letter-spacing:normal;font-variant:normal;font-style:normal;font-weight:normal;line-height:normal;border-collapse:separate;text-transform:none;font-size:medium;white-space:normal;font-family:Helvetica;word-spacing:0px"><div style="word-wrap:break-word">
<div>Jan-Mathijs Schoffelen, MD PhD </div><div><br></div><div>Donders Institute for Brain, Cognition and Behaviour, <br>Centre for Cognitive Neuroimaging,<br>Radboud University Nijmegen, The Netherlands</div><div><br></div>
<div>Max Planck Institute for Psycholinguistics,</div><div>Nijmegen, The Netherlands</div><div><br></div><div><a href="mailto:J.Schoffelen@donders.ru.nl" target="_blank">J.Schoffelen@donders.ru.nl</a></div><div>Telephone: <a href="tel:%2B31-24-3614793" value="+31243614793" target="_blank">+31-24-3614793</a></div>
</div></span></div></span></div></span></div></span></div></span></span>
</div>
<br></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" target="_blank">http://mailman.science.ru.nl/mailman/listinfo/fieldtrip</a><br></blockquote></div><br>