Never mind, I just manually added data.dimord='chan_time' into each average and it worked now.<br><br>Best,<br>Steve Politzer-Ahles<br><br><div class="gmail_quote">On Sat, Sep 17, 2011 at 10:14 AM, Stephen Politzer-Ahles <span dir="ltr"><<a href="mailto:politzerahless@gmail.com">politzerahless@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">Hello,<br><br>I have imported data from EEGLAB (using eeglab2fieldtrip()) and averaged within fieldtrip, and then attempted to grand average (using ft_timelockgrandaverage with all the default options except cfg.keepindividual='yes'). I got the following error message:<br>

<br><div style="margin-left:40px"><span style="color:rgb(255, 0, 0);font-family:courier new,monospace">??? Error using ==> fixdimord at 63</span><br style="color:rgb(255, 0, 0);font-family:courier new,monospace">
<span style="color:rgb(255, 0, 0);font-family:courier new,monospace">The data does not contain a dimord, but it also does not resemble raw data</span><br style="color:rgb(255, 0, 0);font-family:courier new,monospace">
<br style="color:rgb(255, 0, 0);font-family:courier new,monospace"><span style="color:rgb(255, 0, 0);font-family:courier new,monospace">Error in ==> ft_checkdata at 151</span><br style="color:rgb(255, 0, 0);font-family:courier new,monospace">

<span style="color:rgb(255, 0, 0);font-family:courier new,monospace">  data = fixdimord(data, strcmp(sourcerepresentation, 'new'));</span><br style="color:rgb(255, 0, 0);font-family:courier new,monospace">

<br style="color:rgb(255, 0, 0);font-family:courier new,monospace"><span style="color:rgb(255, 0, 0);font-family:courier new,monospace">Error in ==> ft_timelockgrandaverage at 72</span><br style="color:rgb(255, 0, 0);font-family:courier new,monospace">

<span style="color:rgb(255, 0, 0);font-family:courier new,monospace">  varargin{i} = ft_checkdata(varargin{i}, 'datatype', 'timelock', 'feedback', 'no');</span><br></div><br>The structure of my average data after importing from EEGLAB looks like this, which I notice is missing some fields that data processed in fieldtrip with ft_preprocessing normally have:<br>

<br><div style="margin-left:40px;font-family:courier new,monospace;color:rgb(0, 153, 0)">CF007_avg = <br><br>      label: {1x36 cell}<br>    fsample: 1000<br>       elec: [1x1 struct]<br>        avg: [36x1201 single]<br>

        var: [36x1201 single]<br>       time: [1x1201 double]<br>        cfg: [1x1 struct]<br></div><br>Does anyone have any idea what might be causing the error?<br><br>Thanks a lot,<br>Steve Politzer-Ahles<br clear="all">
<font color="#888888">
<br>-- <br>Stephen Politzer-Ahles<br>University of Kansas<br>Linguistics Department<br><a href="http://www.linguistics.ku.edu/" target="_blank">http://www.linguistics.ku.edu/</a><br>
</font></blockquote></div><br><br clear="all"><br>-- <br>Stephen Politzer-Ahles<br>University of Kansas<br>Linguistics Department<br><a href="http://www.linguistics.ku.edu/">http://www.linguistics.ku.edu/</a><br>