<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="">
Dear Laetitia,
<div class=""><br 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=""><br class="">
</div>
<div class="">Best,</div>
<div class=""><br 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 href="mailto:daniel.haehnke@tum.de" class="">daniel.haehnke@tum.de</a><br class="">
Phone: +49 89 4140 3356 </div>
<br class="">
<div>
<blockquote type="cite" class="">
<div class="">On 08.08.2016, at 11:36, <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="">
<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 href="http://www.fieldtriptoolbox.org/tutorial/connectivityextended" class="">
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 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>