[Eeglablist] Coherence and Phase coherence
arno
arno at salk.edu
Wed Mar 22 05:36:15 PST 2006
Yossi Arzouan wrote:
> Hi
>
>
> 1. Is there any function in eeglab that calculate Phase coherence?
Yes, this is the crossf function that calculate (by default) the phase
coherence between two variables.
> 2. Using crossf, to evaluate coherence between to signals (x1,x2 )
> that share one frequency (fr1) result in a coh value equally to 1 for
> all frequencies , s! houldn't that result in coh = 1 only for fr1 ?
If the coherence value is 1, it means that the two signal are identical.
It then depends on how you constructed your signal. See below
a = rand(1,1000);
b = rand(1,1000);
afft = fft(a);
bfft = fft(b);
bfft(100:300) = afft(100:300); % afft contain a "miror power image" of
itself (aff(2:500).^2 is the same as afft(end:-1:502).^2), so the code
below is necessary
bfft(702:902) = afft(702:902);
aa = ifft(afft);
bb = ifft(bfft);
figure; crossf(aa,bb, 100, [-500 500], 100);
You will see a "band" of coherence = 1 at 20Hz
Best,
Arno
>
> Yossi
>
>
> ------------------------------------------------------------------------
> Yahoo! Mail
> Bring photos to life! New PhotoMail
> <http://pa.yahoo.com/*http://us.rd.yahoo.com/evt=39174/*http://photomail.mail.yahoo.com>
> makes sharing a breeze.
> ------------------------------------------------------------------------
>
> _______________________________________________
> eeglablist mailing list eeglablist at sccn.ucsd.edu
> Eeglablist page: http://sccn.ucsd.edu/eeglab/eeglabmail.html
> To unsubscribe, send an empty email to eeglablist-unsubscribe at sccn.ucsd.edu
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://sccn.ucsd.edu/pipermail/eeglablist/attachments/20060322/ab955c6d/attachment.html>
More information about the eeglablist
mailing list