<div dir="ltr">Dear all, my problems seem neverending. This time however i really need help. <div>I implemented a pipeline for ERPs. All works now, trialdefinition, preprocessing, channelreplacement, ica, componentrejection, final artifactdetection, timelock of the single subject data. However, when I wanna compute the grandaverage of the single subjects I get the following error message:</div>
<div><br></div><div><div>computing average of avg over 19 subjects</div><div>Warning: discarding electrode information because it cannot be averaged </div><div>> In ft_timelockgrandaverage at 249 </div><div>the call to "ft_timelockgrandaverage" took 0 seconds and required the additional allocation of an estimated 3 MB</div>
<div>computing average of avg over 2 subjects</div><div>Warning: discarding electrode information because it cannot be averaged </div><div>> In ft_timelockgrandaverage at 249 </div><div>the call to "ft_timelockgrandaverage" took 0 seconds and required the additional allocation of an estimated 0 MB</div>
<div>the call to "ft_prepare_layout" took 0 seconds and required the additional allocation of an estimated 0 MB</div><div>the call to "ft_topoplotER" took 0 seconds and required the additional allocation of an estimated 0 MB</div>
</div><div><br></div><div>Furthermore in the plot of the significant clusters, the channelnames are mixed up (do not correspond to my net)</div><div><br></div><div><br></div><div>I guess that there is a problem with the layout I use. </div>
<div>Here the code that I use <br></div><div><br></div><div>%For generating the layout (also in the single subjects):</div><div>















<p class="">cfg = [];</p>
<p class="">cfg.channel  = obs_data.label;</p><p class=""><span class="">cfg.layout   = </span>'GSN-HydroCel-129.sfp'<span class="">;</span></p>
<p class="">cfg.feedback = <span class="">'yes'</span>;</p>
<p class="">lay          = ft_prepare_layout(cfg);</p>
<p class=""> </p>
<p class="">cfg_neighb          = [];</p>
<p class="">cfg_neighb.feedback = <span class="">'yes'</span>;</p>
<p class="">cfg_neighb.method   = <span class="">'triangulation'</span>;</p>
<p class="">cfg_neighb.layout   = lay;</p>
<p class="">neighbours          = ft_prepare_neighbours(cfg_neighb, obs_data);</p>
<p class=""> </p>
<p class="">obs_data.elec = ft_read_sens(<span class="">'GSN-HydroCel-129.sfp'</span>);</p>
<p class=""><br></p><p class="">%For computing the grand average</p><p class="">cfg = [];</p>
<p class="">cfg.channel   = <span class="">'all'</span>;</p>
<p class="">cfg.latency   = <span class="">'all'</span>;</p>
<p class="">cfg.parameter = <span class="">'avg'</span>;</p>
<p class="">cfg.keepindividual = <span class="">'no'</span></p>
<p class="">GA_90         = ft_timelockgrandaverage(cfg,all90{:});  </p>
<p class="">GA_180        = ft_timelockgrandaverage(cfg,all180{:});</p>
<p class="">% "{:}" means to use data from all elements of the variable</p>
<p class=""> </p><p class="">For plotting the significant clusters</p>
<p class="">cfg = [];</p>
<p class="">cfg.style     = <span class="">'blank'</span>;</p>
<p class="">cfg.layout    = lay;</p>
<p class="">cfg.channellabels = <span class="">'yes'</span>;</p>
<p class="">cfg.highlight = <span class="">'labels'</span>;</p>
<p class="">cfg.highlightchannel = find(stat.mask);</p>
<p class="">cfg.comment   = <span class="">'no'</span>;</p>
<p class="">figure; ft_topoplotER(cfg, GA_90)</p>
<p class=""><span class="">title(</span>'Nonparametric: significant with cluster multiple comparison correction'<span class="">)</span></p><p class=""><span class=""><br></span></p><p class=""><span class="">Do you have ANY idea to this? I am really completely helpless....</span></p>
<p class="">thanks and best</p><p class="">Katrin</p></div></div>