<html dir="ltr">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style id="owaParaStyle" type="text/css">P {margin-top:0;margin-bottom:0;}</style>
</head>
<body ocsi="0" fpstyle="1">
<div style="direction: ltr;font-family: Tahoma;color: #000000;font-size: 10pt;">Dear list,
<br>
<br>
after installing the newest version of Fieldtrip today, I have encountered a rather strange error . I am tying to compute corticomuscular coherence for an EEG/EMG dataset and it worked well so far. With the new version however, I get a reshape error I find
fard to understand. This is the code:<br>
<br>
cfg = [];<br>
cfg.frequency = 20;;<br>
cfg.grid = leadfield;<br>
cfg.method = 'dics';<br>
cfg.refchan = 'ExtR1';<br>
cfg.channel = {'EEG' 'ExtR1'};<br>
cfg.vol = hdm;<br>
cfg.dics.projectnoise = 'no';<br>
cfg.dics.lambda = '1%';<br>
cfg.dics.keepfilter = 'yes';<br>
cfg.dics.keeptrials = 'yes';<br>
cfg.dics.realfilter = 'yes';<br>
sourceAll = ft_sourceanalysis(cfg, freqAll); <br>
<br>
but this hasn't changed. The error pops up at lines 619/620 of ft_sourceanalysis (Cf = reshape(sum(Cf, 1) / Ntrials, [Nchans Nchans]);), where it supposedly just averages the CSD matrix over trials. And it makes kind of sense as the line says to reshape the
CSDs from a 1xNchans matrix into a [Nchans Nchans] one. But why is it poppin up now as nothing has changed in my analyses? I have checked the updates of the last months and I couldn't find anything related to this. So has any one an idea why the analysis crashes
at this point. <br>
<br>
Thanks in advance<br>
Best,<br>
David<br>
<br>
<div>
<div style="font-family:Tahoma; font-size:13px">
<div style="font-family:Tahoma; font-size:13px">
<div style="font-family:Tahoma; font-size:13px">
<div style="font-family:Tahoma; font-size:13px">
<div style="font-size:13px">
<hr>
<font size="2" face="Tahoma"><font color="003366">Dr. David Pedrosa<br>
</font></font><font color="003366" size="2" face="Tahoma"><br>
Clinical Research Fellow</font><font color="003366" size="2" face="Tahoma"><br>
</font><font color="003366" size="2" face="Tahoma"><span dir="ltr" style="font-size:10pt">
<div>
<div><span style="font-size:13px">
<div><font size="2"><span style="font-size:10pt">Medical Research Council Brain Network Dynamics Unit at the University of Oxford<br>
Nuffield Department of Clinical Neurosciences</span></font></div>
<div>University of Oxford</div>
<div>Level 6, West Wing</div>
<div>John Radcliffe Hospital, OX3 9DU<br>
</div>
</span></div>
</div>
</span></font><font color="003366" size="2" face="Tahoma"><span style="font-size:10pt"><u>Tel:</u>
</span></font><font size="2" face="Tahoma"><span style="font-size:10pt"><font color="003366">+44 (0)1865 572490<br>
<u>E-Mail:</u> </font><font color="333333">david.pedrosa@ndcn.ox.ac.uk<br>
</font></span></font><font size="2"><span style="font-size:10pt"><br>
<a href="https://owa.nexus.ox.ac.uk/owa/redir.aspx?C=E40BwPuNq0uXQGSOPDW39AmtYlwBR9IIjsI0PRu9uuTE46jeZnqjmG6XP02rBAUiF1EnCJtn3UU.&URL=http%3a%2f%2fwww.mrcbndu.ox.ac.uk%2f" target="_blank">http://www.mrcbndu.ox.ac.uk/</a></span></font><br>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</body>
</html>