<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="">I’m having trouble topoplot my data after a<font face="HelveticaNeue" class=""> ft_scalpcurrentdensity procedure.</font><div class=""><br class=""></div><div class="">I get an error message :</div><div class="">« Error using topoplot_common (line 267)</div><div class="">cfg.parameter=avg is not present in data structure »</div><div class=""><br class=""></div><div class="">Is that correct I take my individuals and make the mean over all subjects in order to create the avg?</div><div class=""><br class=""></div><div class="">here is my code:</div><div class=""><br class=""></div><div class=""><div style="margin: 0px; font-size: 10px; line-height: normal; font-family: Courier;" class=""> cfg.method =<span style="color: #b245f3" class="">'spline'</span>;</div><div style="margin: 0px; font-size: 10px; line-height: normal; font-family: Courier;" class=""> cfg.elec = ft_read_sens(<span style="color: #b245f3" class="">'standard_waveguard64.elc'</span>);</div><div style="margin: 0px; font-size: 10px; line-height: normal; font-family: Courier;" class=""> cfg.trials = <span style="color: #b245f3" class="">'all'</span> ;</div><p style="margin: 0px; font-size: 10px; line-height: normal; font-family: Courier; min-height: 12px;" class=""> <br class="webkit-block-placeholder"></p><div style="margin: 0px; font-size: 10px; line-height: normal; font-family: Courier;" class=""> cfg.conductivity = 0.33;</div><div style="margin: 0px; font-size: 10px; line-height: normal; font-family: Courier;" class=""> cfg.lambda = 1e-05;</div><div style="margin: 0px; font-size: 10px; line-height: normal; font-family: Courier;" class=""> cfg.order = 4;</div><div style="margin: 0px; font-size: 10px; line-height: normal; font-family: Courier;" class=""> cfg.degree = 14;</div><div style="margin: 0px; font-size: 10px; line-height: normal; font-family: Courier;" class=""> ft_csd_GA_Checker_og = ft_scalpcurrentdensity(cfg, GA_Checker_og)</div><p style="margin: 0px; font-size: 10px; line-height: normal; font-family: Courier; min-height: 12px;" class=""> <br class="webkit-block-placeholder"></p><div style="margin: 0px; font-size: 10px; line-height: normal; font-family: Courier;" class=""> ft_csd_GA_Checker_og.avg = squeeze(mean(ft_csd_GA_Checker_og.trial,1));</div></div><div class=""><br class=""></div><div class="">the last line was my turnaround. I just want to make sure the procedure is correct.</div><div class=""><br class=""></div><div class="">Thank you!</div></body></html>