<html dir="ltr">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" id="owaParaStyle"></style>
</head>
<body fpstyle="1" ocsi="0">
<div style="direction: ltr;font-family: Tahoma;color: #000000;font-size: 10pt;">
<div style="font-family: Times New Roman; color: #000000; font-size: 16px">
<div id="divRpF893157" style="direction: ltr;"><span style="font-size: 10pt; font-family: Tahoma;">Hello</span></div>
<div>
<div style="direction:ltr; font-family:Tahoma; color:#000000; font-size:10pt">
<div style="direction:ltr">
<div style="color:rgb(0,0,0); font-family:Tahoma; font-size:10pt"><br>
</div>
<div style="color:rgb(0,0,0); font-family:Tahoma; font-size:10pt">I want to reconstruct a source signal the same as below in page  <a href="http://www.fieldtriptoolbox.org/tutorial/shared/virtual_sensors" style="font-size:10pt" target="_blank">http://www.fieldtriptoolbox.org/tutorial/shared/virtual_sensors</a></div>
<div style="color:rgb(0,0,0); font-family:Tahoma; font-size:10pt">
<pre class="code" style="padding:0.5em; margin-top:0px; margin-bottom:1em; margin-left:-10px; font-size:12px; border:1px dashed rgb(204,204,204); overflow:hidden; font-family:Consolas,'Andale Mono',Menlo,Monaco,monospace; white-space:pre-wrap; width:640px; text-align:justify; background-color:rgb(247,249,250)">cfg              = [];
cfg.method       = 'lcmv';
cfg.vol          = hdm;
cfg.grid.pos     = sourcemodel.pos([maxcohindx maxpowindx], :);
cfg.grid.inside  = 1:size(cfg.grid.pos, 1);
cfg.grid.outside = [];
cfg.keepfilter   = 'yes';
source_idx       = ft_sourceanalysis(cfg, tlock);</pre>
</div>
<div><span style="font-size:10pt">Not from the voxel indicating maximum power (</span><span style="color:rgb(0,0,0); font-family:Consolas,'Andale Mono',Menlo,Monaco,monospace; font-size:12px; text-align:justify; white-space:pre-wrap; background-color:rgb(247,249,250)">[maxval,
 maxpowindx] = max(source_diff.avg.pow);</span><span style="color:rgb(0,0,0); font-family:Tahoma; font-size:10pt">), but from the atlas area which this voxel belongs to, such as </span>Supp_Motor_Area_L. So my question is: How I can get the atlas range and
 atlas label belong to a voxel, and how I can use this atlas area range in this code to reconstruct a signal instead of using (<span style="font-family:Consolas,'Andale Mono',Menlo,Monaco,monospace; font-size:12px; text-align:justify; white-space:pre-wrap; background-color:rgb(247,249,250)">cfg.grid.pos
 = sourcemodel.pos([maxcohindx maxpowindx], :)</span><span style="font-size:10pt">).</span></div>
<div><span style="font-size:10pt"><br>
</span></div>
<div><span style="font-size:10pt">Regards,</span></div>
<div><span style="font-size:10pt">Parinaz.</span></div>
</div>
</div>
</div>
</div>
</div>
</body>
</html>