<html dir="ltr">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=Windows-1252">
<style type="text/css" id="owaParaStyle"></style>
</head>
<body class="" style="word-wrap:break-word" fpstyle="1" ocsi="0">
<div style="direction: ltr;font-family: Helvetica;color: #000000;font-size: 10pt;">
<div>Hi Sandra,</div>
<div><br>
</div>
<div>I assume the input GA_Checker_og is a grand average where you have used cfg.keepindividual='yes', so you have the field .individual in the data instead of .avg.</div>
<div>So, you can either use cfg.keepindividual='no' when making your grand average, or I guess you can use ft_timelockanalysis after the ft_scalpcurrentdensity.</div>
<div><br>
</div>
<div>Cheers,</div>
<div>Tineke</div>
<div><br>
</div>
<div>
<div style="font-family: Times New Roman; color: #000000; font-size: 16px">
<hr tabindex="-1">
<div id="divRpF711350" style="direction: ltr;"><font face="Tahoma" size="2" color="#000000"><b>From:</b> fieldtrip-bounces@science.ru.nl [fieldtrip-bounces@science.ru.nl] on behalf of sandra guerreiro jacinto [sgj.umontreal@gmail.com]<br>
<b>Sent:</b> Wednesday, July 27, 2016 11:07 PM<br>
<b>To:</b> fieldtrip@science.ru.nl<br>
<b>Subject:</b> [FieldTrip] topoplot CSD data<br>
</font><br>
</div>
<div></div>
<div>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 class="" style="margin:0px; font-size:10px; line-height:normal; font-family:Courier">
cfg.method =<span class="" style="color:#b245f3">'spline'</span>;</div>
<div class="" style="margin:0px; font-size:10px; line-height:normal; font-family:Courier">
cfg.elec = ft_read_sens(<span class="" style="color:#b245f3">'standard_waveguard64.elc'</span>);</div>
<div class="" style="margin:0px; font-size:10px; line-height:normal; font-family:Courier">
cfg.trials = <span class="" style="color:#b245f3">'all'</span> ;</div>
<p class="" style="margin:0px; font-size:10px; line-height:normal; font-family:Courier; min-height:12px">
<br class="webkit-block-placeholder">
</p>
<div class="" style="margin:0px; font-size:10px; line-height:normal; font-family:Courier">
cfg.conductivity = 0.33;</div>
<div class="" style="margin:0px; font-size:10px; line-height:normal; font-family:Courier">
cfg.lambda = 1e-05;</div>
<div class="" style="margin:0px; font-size:10px; line-height:normal; font-family:Courier">
cfg.order = 4;</div>
<div class="" style="margin:0px; font-size:10px; line-height:normal; font-family:Courier">
cfg.degree = 14;</div>
<div class="" style="margin:0px; font-size:10px; line-height:normal; font-family:Courier">
ft_csd_GA_Checker_og = ft_scalpcurrentdensity(cfg, GA_Checker_og)</div>
<p class="" style="margin:0px; font-size:10px; line-height:normal; font-family:Courier; min-height:12px">
<br class="webkit-block-placeholder">
</p>
<div class="" style="margin:0px; font-size:10px; line-height:normal; font-family:Courier">
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>
</div>
</div>
</div>
</div>
</body>
</html>