<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="">
<div class="">Dear Andreas,</div>
<div class=""><br class="">
</div>
Have you tried it with a more recent version? Also, I would recommend not to use ft_sourcegrandaverage, but to use the syntax ft_sourcestatistics(cfg, source1{:}, source2{:}), assuming you have the single subject data represented in a cell-array of structures,
 with source1 for condition 1 and source2 for condition 2.
<div class=""><br class="">
</div>
<div class="">Best,</div>
<div class="">Jan-Mathijs</div>
<div class=""><br class="">
<div class=""><br class="">
</div>
<div class=""><br class="">
</div>
<div class=""><br class="">
<div>
<blockquote type="cite" class="">
<div class="">On 24 Apr 2016, at 18:36, Andreas Sauer <<a href="mailto:sauer.mpih@googlemail.com" class="">sauer.mpih@googlemail.com</a>> wrote:</div>
<br class="Apple-interchange-newline">
<div class="">
<div dir="ltr" class="">
<div style="margin: 0px; font-size: 13px; line-height: normal; font-family: Arial; color: rgb(35, 35, 35);" class="">
<span style="" class="">Dear all,</span></div>
<div style="margin: 0px; font-size: 13px; line-height: normal; font-family: Arial; color: rgb(35, 35, 35); min-height: 15px;" class="">
<span style="" class=""></span><br class="">
</div>
<div style="margin: 0px; font-size: 13px; line-height: normal; font-family: Arial; color: rgb(35, 35, 35);" class="">
<span style="" class="">unfortunately, I am having problems to run source statistics on ERF mismatch negativity data (recorded with a 4D system). </span></div>
<div style="margin: 0px; font-size: 13px; line-height: normal; font-family: Arial; color: rgb(35, 35, 35); min-height: 15px;" class="">
<span style="" class=""></span><br class="">
</div>
<div style="margin: 0px; font-size: 13px; line-height: normal; font-family: Arial; color: rgb(35, 35, 35);" class="">
<span style="" class="">With the following data structure as input (output from ft_sourcegrandaverage), fieldtrip gives a warning that it „could not determine dimord of „pow“ in the following data“</span></div>
<div style="margin: 0px; font-size: 13px; line-height: normal; font-family: Arial; color: rgb(35, 35, 35); min-height: 15px;" class="">
<span style="" class=""></span><br class="">
</div>
<div style="margin: 0px; font-size: 13px; line-height: normal; font-family: Arial; color: rgb(35, 35, 35);" class="">
<span style="" class="">pow: [16x37696 double]</span></div>
<div style="margin: 0px; font-size: 13px; line-height: normal; font-family: Arial; color: rgb(35, 35, 35);" class="">
<span style="" class="">dim: [31 38 32]</span></div>
<div style="margin: 0px; font-size: 13px; line-height: normal; font-family: Arial; color: rgb(35, 35, 35);" class="">
<span style="" class="">inside: [37696x1 logical]</span></div>
<div style="margin: 0px; font-size: 13px; line-height: normal; font-family: Arial; color: rgb(35, 35, 35);" class="">
<span style="" class="">pos: [37696x3 double]</span></div>
<div style="margin: 0px; font-size: 13px; line-height: normal; font-family: Arial; color: rgb(35, 35, 35);" class="">
<span style="" class="">time: [1x900 double]</span></div>
<div style="margin: 0px; font-size: 13px; line-height: normal; font-family: Arial; color: rgb(35, 35, 35);" class="">
<span style="" class="">cfg: [1x1 struct]</span></div>
<div style="margin: 0px; font-size: 13px; line-height: normal; font-family: Arial; color: rgb(35, 35, 35); min-height: 15px;" class="">
<span style="" class=""></span><br class="">
</div>
<div style="margin: 0px; font-size: 13px; line-height: normal; font-family: Arial; color: rgb(35, 35, 35);" class="">
<span style="" class="">and later throws an error that „field „pow“ (is) not present in data“. I checked the ft_sourcestatistic script step by step and found out that ft_selectdata removes it after being called by ft_sourcestatistics.</span></div>
<div style="margin: 0px; font-size: 13px; line-height: normal; font-family: Arial; color: rgb(35, 35, 35); min-height: 15px;" class="">
<span style="" class=""></span><br class="">
</div>
<div style="margin: 0px; font-size: 13px; line-height: normal; font-family: Arial; color: rgb(35, 35, 35);" class="">
<span style="" class="">I am using the fieldtrip version from 15/05/2015. I also tried with older versions, one from late 2014 and late 2013, but nothing worked.</span></div>
<div style="margin: 0px; font-size: 13px; line-height: normal; font-family: Arial; color: rgb(35, 35, 35); min-height: 15px;" class="">
<span style="" class=""></span><br class="">
</div>
<div style="margin: 0px; font-size: 13px; line-height: normal; font-family: Arial; color: rgb(35, 35, 35);" class="">
<span style="" class="">Unfortunately, since ft_selectdata removes the field "pow" from the data during the call to ft_sourcestatistic, I can’t put it back in to the structure. </span></div>
<div style="margin: 0px; font-size: 13px; line-height: normal; font-family: Arial; color: rgb(35, 35, 35); min-height: 15px;" class="">
<span style="" class=""></span><br class="">
</div>
<div style="margin: 0px; font-size: 13px; line-height: normal; font-family: Arial; color: rgb(35, 35, 35);" class="">
<span style="" class="">Any help with this (esp. why „pow“ is being removed) is highly appreciated!</span></div>
<div style="margin: 0px; font-size: 13px; line-height: normal; font-family: Arial; color: rgb(35, 35, 35); min-height: 15px;" class="">
<span style="" class=""></span><br class="">
</div>
<div style="margin: 0px; font-size: 13px; line-height: normal; font-family: Arial; color: rgb(35, 35, 35);" class="">
<span style="" class="">Thanks and best wishes,</span></div>
<div style="margin: 0px; font-size: 13px; line-height: normal; font-family: Arial; color: rgb(35, 35, 35); min-height: 15px;" class="">
<span style="" class=""></span><br class="">
</div>
<div style="margin: 0px; font-size: 13px; line-height: normal; font-family: Arial; color: rgb(35, 35, 35);" class="">
<span style="" class="">Andreas</span></div>
<div style="margin: 0px; font-size: 13px; line-height: normal; font-family: Arial; color: rgb(35, 35, 35);" class="">
<span style="" class=""><br class="">
</span></div>
<div style="margin: 0px; font-size: 13px; line-height: normal; font-family: Arial; color: rgb(35, 35, 35);" class="">
<span style="" class=""><br class="">
</span></div>
<div class="">
<div class=""><br class="">
</div>
-- <br class="">
<div class="gmail_signature">
<div class=""></div>
<div class="">Dipl.-Psych. Andreas Sauer</div>
<div class="">Max Planck Institute for Brain Research</div>
<div class="">Deutschordenstraße 46</div>
<div class="">60528 Frankfurt am Main</div>
<div class="">Germany</div>
<div class=""><br class="">
</div>
<div class="">T: +49 69 96769 278</div>
<div class="">F: +49 69 96769 327</div>
<div class="">Email: <a href="mailto:sauer.mpih@gmail.com" target="_blank" class="">
sauer.mpih@gmail.com</a></div>
<div class=""><a href="http://www.brain.mpg.de/" target="_blank" class="">www.brain.mpg.de</a></div>
</div>
</div>
</div>
_______________________________________________<br class="">
fieldtrip mailing list<br class="">
<a href="mailto:fieldtrip@donders.ru.nl" class="">fieldtrip@donders.ru.nl</a><br class="">
http://mailman.science.ru.nl/mailman/listinfo/fieldtrip</div>
</blockquote>
</div>
<br class="">
</div>
</div>
</body>
</html>