<div dir="ltr"><br><div>Dear FieldTrip experts ,</div><div><br></div><div>I'm interested to perform symmetric source reconstruction on time lock data. However I encountered an error. here is my code:</div><div><br></div><div>cfg                         = [];<br></div><div><div>cfg.grid.unit            = 'mm';</div><div>cfg.grid.resolution   = 5;</div><div>cfg.grid.tight           = 'yes';</div><div>cfg.inwardshift        = -2;</div><div>cfg.headmodel        = vol;</div><div>cfg.symmetric        ='y';  % symmetric sources</div><div><br></div><div>grid                = ft_prepare_sourcemodel(cfg);</div></div><div><br></div><div><br></div><div>% timelock data for two conditions</div><div><br></div><div>load timelockA     %co-variance computed</div><div>load timelockB     %co-variance computed</div><div>load timeloackAB %co-variance computed</div><div><br></div><div>load elecfile.mat   % sensor positions</div><div>load vol.mat         % pre-compute head model</div><div><br></div><div><div>cfg                     = [];</div><div>cfg.method         = 'lcmv';     </div><div>cfg.grid               = grid;       </div><div>cfg.headmodel     = vol;       </div><div>cfg.elec               = elecfile;</div><div>cfg.keepfilter        = 'yes';</div><div>source                = ft_sourceanalysis(timeloackAB); % compute common filter</div><div><br></div><div>cfg.keepfilter        = 'no';<br></div><div>cfg.grid.filter         =source.avg.filter</div><div><div>sourceA               = ft_sourceanalysis(timeloackA); % compute common filter</div></div><div><br></div><div><div>sourceB               = ft_sourceanalysis(timeloackA); % compute common filter</div></div><div><br></div><div><br></div><div>% Contrast Condition A versus B</div><div><div>cfg           = [];</div><div>cfg.parameter = 'pow';</div><div>cfg.operation = '(x1./x2-1)';</div><div>SourceC= ft_math(cfg,sourceA ,sourceB);</div></div><div><br></div><div>load mri.mat       % load anatomical image</div><div><br></div><div><div>cfg            = [];</div><div>cfg.parameter  = 'pow';</div><div>sourcePostInt  = ft_sourceinterpolate(cfg,  SourceC ,mri);</div></div><div><br></div><div>here I get error in ft_warp_apply because the grid.pos is 6*n which it is supposed to be 3*n, since I chose the symmetric option it turned to 6*n.</div><div><br></div><div>How can I solve this problem?</div><div><br></div><div>Thanks in advance</div><div>Best</div><div><br></div><div>Behzad</div><div><br></div><div><br></div><div>  </div></div><div><br></div></div>