<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Verdana
}
--></style>
</head>
<body class='hmmessage'>
Actually I don't think so.<br><br>I first computed the sourcestatistics.<br>Then I interpolated the Stats and visualized them with sourceplot and cfg.interactive = yes.<br><br>Frederic<br><br><br><br><br><hr id="stopSpelling">Date: Fri, 4 Dec 2009 14:58:23 +0100<br>From: ingrid.nieuwenhuis@FCDONDERS.RU.NL<br>Subject: Re: [FIELDTRIP] interpolated source activity values = NaN<br>To: FIELDTRIP@NIC.SURFNET.NL<br><br>








<style>
.ExternalClass .ecxshape
{;}
</style>


<style>
</style>

<style>
.ExternalClass p.ecxMsoNormal, .ExternalClass li.ecxMsoNormal, .ExternalClass div.ecxMsoNormal
{margin-bottom:.0001pt;font-size:12.0pt;font-family:'Times New Roman';}
.ExternalClass a:link, .ExternalClass span.ecxMsoHyperlink
{color:blue;text-decoration:underline;}
.ExternalClass a:visited, .ExternalClass span.ecxMsoHyperlinkFollowed
{color:blue;text-decoration:underline;}
.ExternalClass p
{margin-right:0in;margin-left:0in;font-size:12.0pt;font-family:'Times New Roman';}
.ExternalClass p.ecxecxmsonormal, .ExternalClass li.ecxecxmsonormal, .ExternalClass div.ecxecxmsonormal
{margin-right:0in;margin-left:0in;font-size:12.0pt;font-family:'Times New Roman';}
.ExternalClass p.ecxecxmsonormal1, .ExternalClass li.ecxecxmsonormal1, .ExternalClass div.ecxecxmsonormal1
{margin-right:0in;margin-bottom:0in;margin-left:0in;margin-bottom:.0001pt;font-size:12.0pt;font-family:'Times New Roman';}
.ExternalClass p.ecxecxmsonormal2, .ExternalClass li.ecxecxmsonormal2, .ExternalClass div.ecxecxmsonormal2
{margin-right:0in;margin-bottom:0in;margin-left:0in;margin-bottom:.0001pt;font-size:12.0pt;font-family:'Times New Roman';}
.ExternalClass p.ecxecxmsonormal3, .ExternalClass li.ecxecxmsonormal3, .ExternalClass div.ecxecxmsonormal3
{margin-right:0in;margin-bottom:0in;margin-left:0in;margin-bottom:.0001pt;font-size:12.0pt;font-family:'Times New Roman';}
.ExternalClass p.ecxecxmsonormal4, .ExternalClass li.ecxecxmsonormal4, .ExternalClass div.ecxecxmsonormal4
{margin-right:0in;margin-bottom:0in;margin-left:0in;margin-bottom:.0001pt;font-size:12.0pt;font-family:'Times New Roman';}
.ExternalClass p.ecxecxmsonormal5, .ExternalClass li.ecxecxmsonormal5, .ExternalClass div.ecxecxmsonormal5
{margin-right:0in;margin-bottom:0in;margin-left:0in;margin-bottom:.0001pt;font-size:12.0pt;font-family:'Times New Roman';}
.ExternalClass span.ecxecxmsohyperlink1
{color:blue;text-decoration:underline;}
.ExternalClass p.ecxecxmsonormal6, .ExternalClass li.ecxecxmsonormal6, .ExternalClass div.ecxecxmsonormal6
{margin-right:0in;margin-bottom:0in;margin-left:0in;margin-bottom:.0001pt;font-size:12.0pt;font-family:'Times New Roman';}
.ExternalClass span.ecxecxmsohyperlink2
{color:blue;text-decoration:underline;}
.ExternalClass p.ecxecxmsonormal7, .ExternalClass li.ecxecxmsonormal7, .ExternalClass div.ecxecxmsonormal7
{margin-right:0in;margin-bottom:0in;margin-left:0in;margin-bottom:.0001pt;font-size:12.0pt;font-family:'Times New Roman';}
.ExternalClass span.ecxecxmsohyperlink3
{color:blue;text-decoration:underline;}
.ExternalClass span.ecxecxmsohyperlinkfollowed1
{color:blue;text-decoration:underline;}
.ExternalClass p.ecxecxmsonormal8, .ExternalClass li.ecxecxmsonormal8, .ExternalClass div.ecxecxmsonormal8
{margin-right:0in;margin-bottom:0in;margin-left:0in;margin-bottom:.0001pt;font-size:12.0pt;font-family:'Times New Roman';}
.ExternalClass span.ecxecxmsohyperlink4
{color:blue;text-decoration:underline;}
.ExternalClass span.ecxecxmsohyperlinkfollowed2
{color:blue;text-decoration:underline;}
.ExternalClass p.ecxecxmsonormal9, .ExternalClass li.ecxecxmsonormal9, .ExternalClass div.ecxecxmsonormal9
{margin-right:0in;margin-bottom:0in;margin-left:0in;margin-bottom:.0001pt;font-size:12.0pt;font-family:'Times New Roman';}
.ExternalClass span.ecxecxmsohyperlink5
{color:blue;text-decoration:underline;}
.ExternalClass span.ecxecxmsohyperlinkfollowed3
{color:blue;text-decoration:underline;}
.ExternalClass span.ecxecxemailstyle181
{font-family:Arial;color:navy;}
.ExternalClass p.ecxecxmsonormal10, .ExternalClass li.ecxecxmsonormal10, .ExternalClass div.ecxecxmsonormal10
{margin-right:0in;margin-bottom:0in;margin-left:0in;margin-bottom:.0001pt;font-size:12.0pt;font-family:'Times New Roman';}
.ExternalClass span.ecxecxmsohyperlink6
{color:blue;text-decoration:underline;}
.ExternalClass span.ecxecxmsohyperlinkfollowed4
{color:blue;text-decoration:underline;}
.ExternalClass span.ecxecxemailstyle182
{font-family:Arial;color:navy;}
.ExternalClass p.ecxecxmsonormal11, .ExternalClass li.ecxecxmsonormal11, .ExternalClass div.ecxecxmsonormal11
{margin-right:0in;margin-bottom:0in;margin-left:0in;margin-bottom:.0001pt;font-size:12.0pt;font-family:'Times New Roman';}
.ExternalClass span.ecxecxmsohyperlink7
{color:blue;text-decoration:underline;}
.ExternalClass span.ecxecxmsohyperlinkfollowed5
{color:blue;text-decoration:underline;}
.ExternalClass span.ecxecxemailstyle183
{font-family:Arial;color:navy;}
.ExternalClass span.ecxEmailStyle48
{font-family:Arial;color:navy;}
@page Section1
{size:8.5in 11.0in;}
.ExternalClass div.ecxSection1
{page:Section1;}
</style>





<div class="ecxSection1">

<p class="ecxMsoNormal"><font color="navy" face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial; color: navy;">Dear Frederic,</span></font></p>

<p class="ecxMsoNormal"><font color="navy" face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial; color: navy;"> </span></font></p>

<p class="ecxMsoNormal"><font color="navy" face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial; color: navy;">Could it be that you wrote down the
indices of the voxels before interpolating? Since the voxels before
interpolating do not match anymore after interpolating onto the template_mri.</span></font></p>

<p class="ecxMsoNormal"><font color="navy" face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial; color: navy;"> </span></font></p>

<p class="ecxMsoNormal"><font color="navy" face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial; color: navy;">Best,</span></font></p>

<p class="ecxMsoNormal"><font color="navy" face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial; color: navy;">Ingrid</span></font></p>

<p class="ecxMsoNormal"><font color="navy" face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial; color: navy;"> </span></font></p>

<p class="ecxMsoNormal"><font color="navy" face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial; color: navy;"> </span></font></p>

<div>

<div class="ecxMsoNormal" style="text-align: center;" align="center"><font face="Times New Roman" size="3"><span style="font-size: 12pt;">

<hr align="center" size="2" width="100%">

</span></font></div>

<p class="ecxMsoNormal"><b><font face="Tahoma" size="2"><span style="font-size: 10pt; font-family: Tahoma; font-weight: bold;">From:</span></font></b><font face="Tahoma" size="2"><span style="font-size: 10pt; font-family: Tahoma;"> FieldTrip
discussion list [mailto:FIELDTRIP@NIC.SURFNET.NL] <b><span style="font-weight: bold;">On Behalf Of </span></b>Frederic Roux<br>
<b><span style="font-weight: bold;">Sent:</span></b> Friday, December 04, 2009
2:51 PM<br>
<b><span style="font-weight: bold;">To:</span></b> FIELDTRIP@NIC.SURFNET.NL<br>
<b><span style="font-weight: bold;">Subject:</span></b> Re: [FIELDTRIP]
interpolated source activity values = NaN</span></font></p>

</div>

<p class="ecxMsoNormal"><font face="Times New Roman" size="3"><span style="font-size: 12pt;"> </span></font></p>

<p class="ecxMsoNormal" style="margin-bottom: 12pt;"><font face="Verdana" size="2"><span style="font-size: 10pt; font-family: Verdana;">Hi Ingrid,<br>
<br>
thanks for the quick reply. I will try your suggestion but I am pretty much
sure that the values I want to look at are inside the brain.<br>
<br>
My approach is the following:<br>
<br>
I want to indentify the voxels that show significant activation.<br>
So first I visualized my data with sourceplot and cfg.interactive = 'yes' and
then I write down the indices of the voxels onto which I click.<br>
<br>
When I feed these indices into SourceInterpolatedStats.stat([x y z]) this
returns me NaNs, even tough the voxel was clearly located inside the brain.<br>
<br>
Do you have any idea of why this happens?<br>
<br>
Frederic</span></font></p>

<div class="ecxMsoNormal" style="text-align: center;" align="center"><font face="Verdana" size="2"><span style="font-size: 10pt; font-family: Verdana;">

<hr id="ecxstopSpelling" align="center" size="2" width="100%">

</span></font></div>

<p class="ecxMsoNormal" style="margin-bottom: 12pt;"><font face="Verdana" size="2"><span style="font-size: 10pt; font-family: Verdana;">Date: Fri, 4 Dec 2009 13:21:17
+0100<br>
From: ingrid.nieuwenhuis@FCDONDERS.RU.NL<br>
Subject: Re: [FIELDTRIP] interpolated source activity values = NaN<br>
To: FIELDTRIP@NIC.SURFNET.NL</span></font></p>

<div>

<p class="ecxMsoNormal"><font color="navy" face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial; color: navy;">Hi Frederic,</span></font><font face="Verdana" size="2"><span style="font-size: 10pt; font-family: Verdana;"></span></font></p>

<p class="ecxMsoNormal"><font color="navy" face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial; color: navy;"> </span></font><font face="Verdana" size="2"><span style="font-size: 10pt; font-family: Verdana;"></span></font></p>

<p class="ecxMsoNormal"><font color="navy" face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial; color: navy;">Probably the NaN’s
are the voxels outside the brain. The source estimate is only performed for
voxels inside the brain, the voxels outside are put to NaN.
In the field “inside” it is coded which voxels lay inside the brain. Try:</span></font><font face="Verdana" size="2"><span style="font-size: 10pt; font-family: Verdana;"></span></font></p>

<p class="ecxMsoNormal"><font face="Verdana" size="2"><span style="font-size: 10pt; font-family: Verdana;">SourceInterpolatedStats.stat(SourceInterpolatedStats.inside)</span></font></p>

<p class="ecxMsoNormal"><font color="navy" face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial; color: navy;">This should give you the non-NaN values.</span></font><font face="Verdana" size="2"><span style="font-size: 10pt; font-family: Verdana;"></span></font></p>

<p class="ecxMsoNormal"><font color="navy" face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial; color: navy;"> </span></font><font face="Verdana" size="2"><span style="font-size: 10pt; font-family: Verdana;"></span></font></p>

<p class="ecxMsoNormal"><font color="navy" face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial; color: navy;">Hope this helps,</span></font><font face="Verdana" size="2"><span style="font-size: 10pt; font-family: Verdana;"></span></font></p>

<p class="ecxMsoNormal"><font color="navy" face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial; color: navy;">Ingrid</span></font><font face="Verdana" size="2"><span style="font-size: 10pt; font-family: Verdana;"></span></font></p>

<p class="ecxMsoNormal"><font color="navy" face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial; color: navy;"> </span></font><font face="Verdana" size="2"><span style="font-size: 10pt; font-family: Verdana;"></span></font></p>

<p class="ecxMsoNormal"><font color="navy" face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial; color: navy;"> </span></font><font face="Verdana" size="2"><span style="font-size: 10pt; font-family: Verdana;"></span></font></p>

<div>

<div class="ecxMsoNormal" style="text-align: center;" align="center"><font face="Times New Roman" size="3"><span style="font-size: 12pt;">

<hr align="center" size="2" width="100%">

</span></font></div>

<p class="ecxMsoNormal"><b><font face="Tahoma" size="2"><span style="font-size: 10pt; font-family: Tahoma; font-weight: bold;">From:</span></font></b><font face="Tahoma" size="2"><span style="font-size: 10pt; font-family: Tahoma;"> FieldTrip
discussion list [mailto:FIELDTRIP@NIC.SURFNET.NL] <b><span style="font-weight: bold;">On Behalf Of </span></b>Frederic Roux<br>
<b><span style="font-weight: bold;">Sent:</span></b> Friday, December 04, 2009
12:51 PM<br>
<b><span style="font-weight: bold;">To:</span></b> FIELDTRIP@NIC.SURFNET.NL<br>
<b><span style="font-weight: bold;">Subject:</span></b> [FIELDTRIP] interpolated
source activity values = NaN</span></font><font face="Verdana" size="2"><span style="font-size: 10pt; font-family: Verdana;"></span></font></p>

</div>

<p class="ecxMsoNormal"><font face="Times New Roman" size="3"><span style="font-size: 12pt;"> </span></font><font face="Verdana" size="2"><span style="font-size: 10pt; font-family: Verdana;"></span></font></p>

<p class="ecxMsoNormal" style="margin-bottom: 12pt;"><font face="Verdana" size="2"><span style="font-size: 10pt; font-family: Verdana;">Hi everyone,<br>
<br>
I would like to use the values that correspond to the interpolated statistics
at source level. <br>
The problem is that most of these values are NaNs, even tough I can visualize
them with sourceplot.<br>
<br>
Here are the steps I am doing to compute these values:<br>
<br>
[signal1] = sourcegrandaverage(cfg,data);<br>
[signal2] = sourcegrandaverage(cfg,data);<br>
<br>
[Stats] = sourcestatistics(cfg,signal1,signal2);%the statistics used here is
depsamplesT using fdr and clusterstatistics = maxsum<br>
[SourceInterpolatedSats] = sourceinterpolate(cfg,Stats,template_mri);<br>
<br>
This yields:<br>
<br>
SourceInterpolatedSats =<br>
<br>
       inside: [91x109x91 logical]<br>
         stat: [91x109x91 double]<br>
          dim: [91 109 91]<br>
    transform: [4x4 double]<br>
      anatomy: [91x109x91 double]<br>
          cfg: [1x1 struct]<br>
<br>
But when I try :<br>
<br>
SourceInterpolatedStats.stat([20 45 68]) = NaN.<br>
And this holds true for almost any index.<br>
<br>
Does anyone know if it's possible to access these values?<br>
<br>
Frederic</span></font></p>

<div class="ecxMsoNormal" style="text-align: center;" align="center"><font face="Verdana" size="2"><span style="font-size: 10pt; font-family: Verdana;">

<hr align="center" size="2" width="100%">

</span></font></div>

<p class="ecxMsoNormal"><font face="Verdana" size="2"><span style="font-size: 10pt; font-family: Verdana;">Alle E-Mail-Adressen online auf einen Blick <a href="http://redirect.gimas.net/?n=M0912IWHM">Ich will Hotmail!</a></span></font></p>

</div>

<p class="ecxMsoNormal" style="margin-bottom: 12pt;"><font face="Verdana" size="2"><span style="font-size: 10pt; font-family: Verdana;">----------------------------------<br>
The aim of this list is to facilitate the discussion between users of the
FieldTrip toolbox, to share experiences and to discuss new ideas for MEG and
EEG analysis.<br>
http://listserv.surfnet.nl/archives/fieldtrip.html<br>
http://www.ru.nl/fcdonders/fieldtrip/<br>
----------------------------------<br>
The aim of this list is to facilitate the discussion between users of the
FieldTrip toolbox, to share experiences and to discuss new ideas for MEG and
EEG analysis.<br>
http://listserv.surfnet.nl/archives/fieldtrip.html<br>
http://www.ru.nl/fcdonders/fieldtrip/</span></font></p>

<div class="ecxMsoNormal" style="text-align: center;" align="center"><font face="Verdana" size="2"><span style="font-size: 10pt; font-family: Verdana;">

<hr align="center" size="2" width="100%">

</span></font></div>

<p class="ecxMsoNormal"><font face="Verdana" size="2"><span style="font-size: 10pt; font-family: Verdana;">Nie mehr um Weihnachtsgrüße verlegen: <a href="http://redirect.gimas.net/?n=M0912XMasGreetings">mit tollen
Weihnachts-E-Mails </a></span></font></p>

</div>




----------------------------------<BR>
The aim of this list is to facilitate the discussion between users of the FieldTrip  toolbox, to share experiences and to discuss new ideas for MEG and EEG analysis.<BR>
  http://listserv.surfnet.nl/archives/fieldtrip.html<BR>
  http://www.ru.nl/fcdonders/fieldtrip/<BR>
----------------------------------<BR>
The aim of this list is to facilitate the discussion between users of the FieldTrip  toolbox, to share experiences and to discuss new ideas for MEG and EEG analysis.<BR>
  http://listserv.surfnet.nl/archives/fieldtrip.html<BR>
  http://www.ru.nl/fcdonders/fieldtrip/<BR>                                         <br /><hr />Nie mehr um Weihnachtsgrüße verlegen: <a href='http://redirect.gimas.net/?n=M0912XMasGreetings' target='_new'>mit tollen Weihnachts-E-Mails </a></body>
</html><p>----------------------------------</p>
<p>The aim of this list is to facilitate the discussion between users of the FieldTrip  toolbox, to share experiences and to discuss new ideas for MEG and EEG analysis.</p>
<p>  http://listserv.surfnet.nl/archives/fieldtrip.html</p>
<p>  http://www.ru.nl/fcdonders/fieldtrip/</p>