[Eeglablist] Getting coherence between 0-1

Arnaud Delorme arno at ucsd.edu
Sat May 1 09:47:52 PDT 2010


Dear Nick,

that seems odd. The output should be between 0 and 1. Try this code.

a = rand(1,100,10);
b = rand(1,100,10);
coh = newcrossf(a,b,100,[0 1],100,[3 0.8]);
max(max(coh))

The maximum is 1 or less

Or using FFT

a = rand(1,100,10);
b = rand(1,100,10);
coh = newcrossf(a,b,100,[0 1],100,0);
max(max(coh))

Hope this helps,

Arno

On Apr 30, 2010, at 8:49 AM, Nick Bedo wrote:

> Hi all,
>
> I'm wondering how I might tweak my coherence scripts to compute and  
> output coherence measures between 0-1.  Currently I an getting max  
> outputs ranging ~100-2000 (via pop_newcrossf).  As I've been reading  
> through the eeglab archives, it seems like a pretty minor fix, but I  
> couldn't tell how the message's author went about it.
>
> Any tips are appreciated.
>
> Thanks,
> Nick
>
>
>
> <ATT00001..txt>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://sccn.ucsd.edu/pipermail/eeglablist/attachments/20100501/2562ae71/attachment.html 


More information about the eeglablist mailing list