Dear all,<br><div class="gmail_quote"><div><br></div><div>I am creating headmodels of neuromag data (Using FT version 20123105 and the example script <a href="http://fieldtrip.fcdonders.nl/example/create_single-subject_grids_in_individual_head_space_that_are_all_aligned_in_mni_space" target="_blank">http://fieldtrip.fcdonders.nl/example/create_single-subject_grids_in_individual_head_space_that_are_all_aligned_in_mni_space</a>) </div>

<div><br></div><div>The 'vol' structure is created like this:</div><div><br></div><div><div>cfg                      = [];</div><div>cfg.coordsys         = 'neuromag'; </div><div>cfg.method           = 'singleshell';</div>

<div>cfg.sourceunits     = 'mm'; % I have been playing with different units here</div><div>vol = ft_prepare_singleshell(cfg, segmentedmri);</div></div><div><br></div><div>the 'grid' like this:</div><div><br>

</div><div><div>load(strcat(basepath,'templates/template_grid.mat'));</div><div>cfg                  = [];</div><div>cfg.grid.warpmni     = 'yes';</div><div>cfg.grid.template   = template_grid;</div><div>
cfg.grid.nonlinear  = 'yes'; % use non-linear normalization</div>
<div>cfg.coordsys        = 'neuromag'; </div><div>cfg.sourceunits     = 'm';  % I have been playing with different units here as well (the template grid resolution is 1 cm)</div><div>cfg.mri                 = mri;</div>

<div>cfg.vol                  = vol;</div><div>grid                     = ft_prepare_sourcemodel(cfg);</div><div>save(strcat(basepath,cases{s},'brain.mat'), 'vol','grid');</div></div><div><br></div>

<div>Everything works well, untill I plot and see that the sizes/ origins (or units) are completely different for the vol and grid. At the moment I cannot find a solution. Does anyone have an idea?</div><div>The results are plotted and attached to this e-mail.</div>

<div><br></div><div>Thanks in advance,</div><div><br></div><div>Hanneke</div><div><br></div><div><br></div><div><br></div><div><p><span style="font-size:9.0pt">__________________________________________</span></p>


<p><span style="font-size:9.0pt">Hanneke van Dijk, PhD</span></p>

<p><span lang="DE" style="font-size:9.0pt"><a href="http://www.uniklinik-duesseldorf.de/deutsch/unternehmen/institute/KlinNeurowiss/Team/HannekevanDijk/page.html" target="_blank"><span style="color:blue">http://www.uniklinik-duesseldorf.de/deutsch/unternehmen/institute/KlinNeurowiss/Team/HannekevanDijk/page.html</span></a></span><span style="font-size:9.0pt"></span></p>



<p><span style="font-size:9.0pt">Institute for Clinical
Neuroscience,</span></p>

<p class="MsoNormal"><span style="font-size:9.0pt">Heinrich Heine Universit</span><span lang="DE" style="font-size:9.0pt">ä</span><span style="font-size:9.0pt">t D</span><span lang="DE" style="font-size:9.0pt">ü</span><span style="font-size:9.0pt">sseldorf, Germany</span></p>



<p><span style="font-size:9.0pt"><a href="mailto:Hanneke.vanDijk@med.uni-duesseldorf.de" target="_blank">Hanneke.vanDijk@med.uni-duesseldorf.de</a></span></p>

<p><span style="font-size:9.0pt">Tel. +49 (0) 211 81
13074   </span></p>

<p><span style="font-size:9.0pt">__________________________________________                                        </span></p>

<p class="MsoNormal"> </p></div>
</div><br>