<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head><meta http-equiv=Content-Type content="text/html; charset=iso-8859-1"><meta name=Generator content="Microsoft Word 14 (filtered medium)"><style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
span.E-MailFormatvorlage17
        {mso-style-type:personal-compose;
        font-family:"Calibri","sans-serif";
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-family:"Calibri","sans-serif";}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:70.85pt 70.85pt 2.0cm 70.85pt;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]--></head><body lang=EN-US link=blue vlink=purple><div class=WordSection1><p class=MsoNormal>Dear fieldtrip experts,<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>I was wondering how to get the mean phase difference between two sources A and B at a particular frequency f (mean across data segments). My idea was to use dics and to say cfg.refdip=A and cfg.keepcsd=’yes’. Then I would get C, the cross spectral density between A and B, which is a 3x3 matrix with complex entries. Joachim Gross wrote that one could estimate csd in the dominant direction as the trace of C. So I guess I could get the phase difference by angle(trace(C)). Is this correct? If I wanted to use SVD to estimate the dominant direction instead of the trace, how would I get the phase difference then? And finally, if I wanted to have coherence not with the dipole orientation that maximizes power but with the orientation that maximizes phase difference, how would that work?<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>Thanks for any remarks!<o:p></o:p></p><p class=MsoNormal>Jan<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>--<o:p></o:p></p><p class=MsoNormal>Jan Hirschmann<o:p></o:p></p><p class=MsoNormal>MSc Neuroscience<o:p></o:p></p><p class=MsoNormal>Institute of Clinical Neuroscience and Medical Psychology<o:p></o:p></p><p class=MsoNormal><span lang=DE>Heinrich Heine University Düsseldorf<o:p></o:p></span></p><p class=MsoNormal><span lang=DE>Universitätsstr. 1<o:p></o:p></span></p><p class=MsoNormal><span lang=DE>40225 Düsseldorf<o:p></o:p></span></p><p class=MsoNormal><span lang=DE>Germany<o:p></o:p></span></p><p class=MsoNormal><span lang=DE>Tel: +49 (0)211 81 18415<o:p></o:p></span></p><p class=MsoNormal><span lang=DE>Fax: +49 (0)211 81 19033<o:p></o:p></span></p><p class=MsoNormal><o:p> </o:p></p></div></body></html>