<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Dear Nick,<div><br></div><div>that seems odd. The output should be between 0 and 1. Try this code.</div><div><br></div><div><div>a = rand(1,100,10);</div><div>b = rand(1,100,10);</div><div>coh = newcrossf(a,b,100,[0 1],100,[3 0.8]);</div><div>max(max(coh))</div><div><br></div></div><div>The maximum is 1 or less</div><div><br></div><div>Or using FFT</div><div><br></div><div><div>a = rand(1,100,10);</div><div>b = rand(1,100,10);</div><div>coh = newcrossf(a,b,100,[0 1],100,0);</div><div>max(max(coh))</div><div><br></div><div>Hope this helps,</div><div><br></div><div>Arno</div></div><div><br></div><div><div><div>On Apr 30, 2010, at 8:49 AM, Nick Bedo wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font-family: 'times new roman', 'new york', times, serif; font-size: 12pt; "><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">Hi all,</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><br></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">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.</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><br></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">Any tips are appreciated.</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><br></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">Thanks,</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">Nick</div><br><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><br></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; position: fixed; "></div></div><br><span><ATT00001..txt></span></div></blockquote></div><br></div></body></html>