<html dir="ltr">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style id="owaParaStyle" type="text/css">P {margin-top:0;margin-bottom:0;}</style>
</head>
<body ocsi="0" fpstyle="1">
<div style="direction: ltr;font-family: Tahoma;color: #000000;font-size: 10pt;">
<p class="MsoNormal" style="margin-top:.1pt; margin-right:0cm; margin-bottom:.1pt; margin-left:0cm">
<span style="font-size:10.0pt; font-family:Courier; color:black">Dear fieldtrippers,
</span></p>
<p class="MsoNormal" style="margin-top:.1pt; margin-right:0cm; margin-bottom:.1pt; margin-left:0cm">
<span style="font-size:10.0pt; font-family:Courier; color:black"> </span></p>
<p class="MsoNormal" style="margin-top:.1pt; margin-right:0cm; margin-bottom:.1pt; margin-left:0cm">
<span style="font-size:10.0pt; font-family:Courier; color:black">I try to construct leadfield grid using ft_prepare_leadfield.</span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:10.0pt; font-family:Courier; color:black">I use a template MRI (</span><span style="font-size:10.0pt; font-family:Courier; color:#A020F0">/spm8/canonical/single_subj_T1.nii</span><span style="font-size:10.0pt; font-family:Courier; color:black">)
 and template electrode positions (subsample of </span><span style="font-size:10.0pt; font-family:Courier; color:#A020F0">/template/electrode/standard_1005.elc</span><span style="font-size:10.0pt; font-family:Courier; color:black">).<span style=""> 
</span>The resulting grid covers only part of the brain. My attempts to extend it manually using cfg.grid.xgrid, cfg.grid.ygrid, cfg.grid.zgrid do not help. The grid is still too small (see the attached figure).</span><span style="font-family:Courier"></span></p>
<p class="MsoNormal" style="margin-top:.1pt; margin-right:0cm; margin-bottom:.1pt; margin-left:0cm">
<span style="font-size:10.0pt; font-family:Times"> </span></p>
<p class="MsoNormal" style="margin-top:.1pt; margin-right:0cm; margin-bottom:.1pt; margin-left:0cm; text-autospace:none">
<span style="font-size:10.0pt; font-family:Courier; color:black">My code is:</span><span style="font-size:10.0pt; font-family:Times"></span></p>
<p class="MsoNormal" style="margin-top:.1pt; margin-right:0cm; margin-bottom:.1pt; margin-left:0cm; text-autospace:none">
<span style="font-size:10.0pt; font-family:Courier; color:black">cfg                 = [];</span><span style="font-size:10.0pt; font-family:Times"></span></p>
<p class="MsoNormal" style="margin-top:.1pt; margin-right:0cm; margin-bottom:.1pt; margin-left:0cm; text-autospace:none">
<span style="font-size:10.0pt; font-family:Courier; color:black">cfg.vol             = vol;</span><span style="font-size:10.0pt; font-family:Times"></span></p>
<p class="MsoNormal" style="margin-top:.1pt; margin-right:0cm; margin-bottom:.1pt; margin-left:0cm; text-autospace:none">
<span style="font-size:10.0pt; font-family:Courier; color:black">cfg.channel        =  {</span><span style="font-size:10.0pt; font-family:Courier; color:#A020F0">'all'</span><span style="font-size:10.0pt; font-family:Courier; color:black">,
</span><span style="font-size:10.0pt; font-family:Courier; color:#A020F0">'-HEOG'</span><span style="font-size:10.0pt; font-family:Courier; color:black">,
</span><span style="font-size:10.0pt; font-family:Courier; color:#A020F0">'-VEOG'</span><span style="font-size:10.0pt; font-family:Courier; color:black">}
</span><span style="font-size:10.0pt; font-family:Times"></span></p>
<p class="MsoNormal" style="margin-top:.1pt; margin-right:0cm; margin-bottom:.1pt; margin-left:0cm; text-autospace:none">
<span style="font-size:10.0pt; font-family:Courier; color:black">     cfg.grid.xgrid      = [ -80:10:80];
</span><span style="font-size:10.0pt; font-family:Times"></span></p>
<p class="MsoNormal" style="margin-top:.1pt; margin-right:0cm; margin-bottom:.1pt; margin-left:0cm; text-autospace:none">
<span style="font-size:10.0pt; font-family:Courier; color:black">     cfg.grid.ygrid      = [ -100:10:100];
</span><span style="font-size:10.0pt; font-family:Times"></span></p>
<p class="MsoNormal" style="margin-top:.1pt; margin-right:0cm; margin-bottom:.1pt; margin-left:0cm; text-autospace:none">
<span style="font-size:10.0pt; font-family:Courier; color:black">     cfg.grid.zgrid      = [ -110:10:80];
</span><span style="font-size:10.0pt; font-family:Times"></span></p>
<p class="MsoNormal" style="margin-top:.1pt; margin-right:0cm; margin-bottom:.1pt; margin-left:0cm; text-autospace:none">
<span style="font-size:10.0pt; font-family:Courier; color:black">[grid] = ft_prepare_leadfield(cfg, data);</span><span style="font-size:10.0pt; font-family:Times"></span></p>
<p class="MsoNormal" style="margin-top:.1pt; margin-right:0cm; margin-bottom:.1pt; margin-left:0cm">
<span style="font-size:10.0pt; font-family:Times"> </span></p>
<p class="MsoNormal" style="margin-top:.1pt; margin-right:0cm; margin-bottom:.1pt; margin-left:0cm">
<span style="font-size:10.0pt; font-family:Courier; color:black">Why this happens and what may I do wrong?</span><span style="font-size:10.0pt; font-family:Times"></span></p>
<p class="MsoNormal" style="margin-top:.1pt; margin-right:0cm; margin-bottom:.1pt; margin-left:0cm">
<span style="font-size:10.0pt; font-family:Courier; color:black">I am new to the Fieldtrip and I would appreciate any help very much.</span></p>
<p class="MsoNormal" style="margin-top:.1pt; margin-right:0cm; margin-bottom:.1pt; margin-left:0cm">
<span style="font-size:10.0pt; font-family:Courier; color:black">Thanks,</span><span style="font-size:10.0pt; font-family:Times"></span></p>
<p class="MsoNormal" style="margin-top:.1pt; margin-right:0cm; margin-bottom:.1pt; margin-left:0cm">
<span style="font-size:10.0pt; font-family:Times"> </span></p>
<p class="MsoNormal" style="margin-top:.1pt; margin-right:0cm; margin-bottom:.1pt; margin-left:0cm">
<span style="font-size:10.0pt; font-family:Courier; color:black">Elena</span><span style="font-size:10.0pt; font-family:Times"></span></p>
<p class="MsoNormal"> </p>
</div>
</body>
</html>