<html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /></head><body style='font-size: 10pt; font-family: Arial,Helvetica,sans-serif'>
<p>Hi Daniel,</p>
<p style="-qt-block-indent: 0; text-indent: 0px; margin: 0px;">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 : </p>
<p>Operation terminated by user during ft_checkdata>fixcsd (line 1072)<br />In ft_checkdata (line 595)<br />    data = fixcsd(data, cmbrepresentation, channelcmb);</p>
<p>In ft_checkdata>fixcsd (line 1170)<br />  data       = ft_checkdata(data, 'cmbrepresentation', 'full');<br />In ft_checkdata (line 595)<br />    data = fixcsd(data, cmbrepresentation, channelcmb);<br />In ft_connectivityanalysis (line 416)<br />          data = ft_checkdata(data, 'cmbrepresentation', 'full');</p>
<p>Has anyone else encountered issues when trying to plot a Time-Frequency Map of the Granger causality with ft_connectivityanalysis ?</p>
<p>Thanks a lot for your help.</p>
<p>Best,</p>
<p>Laetitia</p>
<p> </p>
<p>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"><!-- 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>
<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="" /> https://mailman.science.ru.nl/mailman/listinfo/fieldtrip</div>
</blockquote>
</div>
</div>
<!-- html ignored --><br />
<div class="pre" style="margin: 0; padding: 0; font-family: monospace">_______________________________________________<br /> fieldtrip mailing list<br /><a href="mailto:fieldtrip@donders.ru.nl">fieldtrip@donders.ru.nl</a><br /><a href="https://mailman.science.ru.nl/mailman/listinfo/fieldtrip">https://mailman.science.ru.nl/mailman/listinfo/fieldtrip</a></div>
</blockquote>
<p> </p>
<div> </div>
</body></html>