<div dir="ltr"><div dir="ltr"><div>Dear all,</div><div><br></div><div>I'm a bit confused with the computation of phase synchronisation.</div><div><br></div><div>What I'm interested is to compute the phase synchronisation changes in the second session (i.e. 1 year later) with respect to the first session. There are 64 EEG channels in my data. I'm interested to compute the mean phase coherence index.</div>
<div><br></div><div>From the tutorial on 'analysis of sensor and source level connectivity, it seems to me one has to first compute the multivariate autoregressive model, follow by the spectral density function, follow by non-parametric computation of the cross spectral density function and finally the connectivity measures. However, when I tried to compute the multivariate autoregressive model as suggested, I get an error message:</div>
<div><br></div><div><div>Error using chol</div><div>Matrix must be positive definite.</div><div><br></div><div>Error in armorf (line 40)</div><div>ap(:,:,1) = inv((chol(ap(:,:,1)/Nr*(Nl-1)))');</div><div><br></div><div>
Error in ft_mvaranalysis (line 395)</div><div>            [ar, tmpnoisecov] = armorf(dat, numel(rpt{rlop}), size(tmpdata.trial{1},2), cfg.order);</div><div> </div></div><div>Can someone help me?</div><div><br></div><div>Thanks!</div>
<div><br></div><div>Cheers,</div><div>Hweeling</div><div><br></div><div><br></div><div><br></div></div>
</div>