<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">
Hi Laetitia,
<div class=""><br class="">
</div>
<div class="">could you provide the code that you used for the calculation of your input structure ‘freq’?</div>
<div class=""><br class="">
</div>
<div class="">When I had a similar looking issue it was because I used a trial-resolved structure, whereas GC calculation seems to require trial-averaged data.</div>
<div class=""><br class="">
</div>
<div class="">Best, Daniel<br class="">
<br class="">
<div>
<blockquote type="cite" class="">
<div class="">On 10.08.2016, at 11:01, <a href="mailto:laetitia.lalla@inserm.fr" class="">
laetitia.lalla@inserm.fr</a> wrote:</div>
<br class="Apple-interchange-newline">
<div class="">
<div style="font-size: 10pt; font-family: Arial,Helvetica,sans-serif" class="">
<p class="">Hi Daniel,</p>
<div style="text-indent: 0px; margin: 0px;" class="">Thanks a lot for your answer. I was using a version from last September. I downloaded the most recent version "fieldtrip-20160809" this morning and I still have the same issue... When I call ft_connectivity
 analysis, this message is displayed : "the call to "ft_selectdata" took 0 seconds and required the additional allocation of an estimated ... MB" and then Matlab stays stuck... I terminate it myself and the error is still the same :
</div>
<p class="">Operation terminated by user during ft_checkdata>fixcsd (line 1072)<br class="">
In ft_checkdata (line 595)<br class="">
    data = fixcsd(data, cmbrepresentation, channelcmb);</p>
<p class="">In ft_checkdata>fixcsd (line 1170)<br class="">
  data       = ft_checkdata(data, 'cmbrepresentation', 'full');<br class="">
In ft_checkdata (line 595)<br class="">
    data = fixcsd(data, cmbrepresentation, channelcmb);<br class="">
In ft_connectivityanalysis (line 416)<br class="">
          data = ft_checkdata(data, 'cmbrepresentation', 'full');</p>
<p class="">Has anyone else encountered issues when trying to plot a Time-Frequency Map of the Granger causality with ft_connectivityanalysis ?</p>
<p class="">Thanks a lot for your help.</p>
<p class="">Best,</p>
<p class="">Laetitia</p>
<div class=""> <br class="webkit-block-placeholder">
</div>
<p class="">On 08-08-2016 11:51, Hähnke wrote:</p>
<blockquote type="cite" style="padding: 0 0.4em; border-left: #1010ff 2px solid; margin: 0" class="">
<!-- html ignored --><!-- head ignored --><!-- meta ignored -->Dear Laetitia,
<div class=""> </div>
<div class="">I think I had this issue before and it was caused by a bug in the fieldtrip version I was using. What version are you using?</div>
<div class=""> </div>
<div class="">Best,</div>
<div class=""> </div>
<div class="">Daniel<br class="">
<div class="">--<br class="">
Daniel Hähnke<br class="">
PhD student<br class="">
<br class="">
Technische Universität München<br class="">
Institute of Neuroscience<br class="">
Translational NeuroCognition Laboratory<br class="">
Biedersteiner Straße 29, Bau 601<br class="">
80802 Munich<br class="">
Germany<br class="">
<br class="">
Email: <a class="" href="mailto:daniel.haehnke@tum.de">daniel.haehnke@tum.de</a><br class="">
Phone: +49 89 4140 3356</div>
<br class="">
<div class="">
<blockquote class="">
<div class="">On 08.08.2016, at 11:36, <a class="" href="mailto:laetitia.lalla@inserm.fr">
laetitia.lalla@inserm.fr</a> wrote:</div>
<br class="Apple-interchange-newline">
<div class="">
<div class="" style="font-size: 10pt; font-family: Arial,Helvetica,sans-serif;">
<div class="">Hello fieldtrippers,</div>
<div class="">first of all, thanks a lot for this collaborative mailing list. It helped me a lot in the past and i hope you will be able to help me today !</div>
<div class=""> </div>
<div class="">I succesfully implemented the spectral granger causality thanks to this FieldTrip tutorial :
<a class="" href="http://www.fieldtriptoolbox.org/tutorial/connectivityextended">
http://www.fieldtriptoolbox.org/tutorial/connectivityextended</a>. Now I'd like to compute a Time-Frequency Map of my granger causality. Hence, I used ft_freqanalysis with cfg.method  = 'mtmconvol' and cfg.output  = 'powandcsd' and the minimal code</div>
<div class="">>cfg=[];<br class="">
>cfg.method='granger';<br class="">
>granger=ft_connectivityanalysis(cfg, freq);</div>
<div class="">to compute the granger causality.</div>
<div class="">However, when I run this code, Matlab bugs and stays "busy" for a while until I terminate it, with the following error message :</div>
<div class=""> </div>
<div class="">Operation terminated by user during ft_checkdata>fixcsd (line 1255)<br class="">
<br class="">
In ft_checkdata (line 797)<br class="">
    data = fixcsd(data, cmbrepresentation, channelcmb);<br class="">
<br class="">
In ft_checkdata>fixcsd (line 1351)<br class="">
  data = ft_checkdata(data, 'cmbrepresentation', 'full');<br class="">
<br class="">
In ft_checkdata (line 797)<br class="">
    data = fixcsd(data, cmbrepresentation, channelcmb);<br class="">
<br class="">
In ft_connectivityanalysis (line 392)<br class="">
          data = ft_checkdata(data, 'cmbrepresentation', 'full');<br class="">
 </div>
<div class="">I can see in the help of the function checkdata the following :  "cmbrepresentation  = sparse, full (applies to covariance and cross-spectral density)". But I don't really understand what "cmbrepresentation" do ... Maybe someone who had a similar
 problem in the past can help me ? I think I'm missing some optional arguments that I should add.</div>
<div class=""> </div>
<div class="">Thanks a lot for your help.</div>
<div class=""> </div>
<div class="">Regards,</div>
<div class=""> </div>
<div class="">Laetitia Lalla</div>
<div class="">PhD student in INMED, Marseille, France</div>
</div>
_______________________________________________<br class="">
fieldtrip mailing list<br class="">
<a class="" href="mailto:fieldtrip@donders.ru.nl">fieldtrip@donders.ru.nl</a><br class="">
<a href="https://mailman.science.ru.nl/mailman/listinfo/fieldtrip" class="">https://mailman.science.ru.nl/mailman/listinfo/fieldtrip</a></div>
</blockquote>
</div>
</div>
<!-- html ignored --><br class="">
<div class="pre" style="margin: 0; padding: 0; font-family: monospace">_______________________________________________<br class="">
fieldtrip mailing list<br class="">
<a href="mailto:fieldtrip@donders.ru.nl" class="">fieldtrip@donders.ru.nl</a><br class="">
<a href="https://mailman.science.ru.nl/mailman/listinfo/fieldtrip" class="">https://mailman.science.ru.nl/mailman/listinfo/fieldtrip</a></div>
</blockquote>
<div class=""> <br class="webkit-block-placeholder">
</div>
<div class=""> </div>
</div>
_______________________________________________<br class="">
fieldtrip mailing list<br class="">
<a href="mailto:fieldtrip@donders.ru.nl" class="">fieldtrip@donders.ru.nl</a><br class="">
https://mailman.science.ru.nl/mailman/listinfo/fieldtrip</div>
</blockquote>
</div>
<br class="">
</div>
</body>
</html>