[FieldTrip] fieldtrip Digest, Vol 64, Issue 32

Schoffelen, J.M. (Jan Mathijs) jan.schoffelen at donders.ru.nl
Tue Mar 29 09:50:05 CEST 2016


Hi Gina,

That’s what I was afraid of. By replacing the .pos and .dim you made the data structure inconsistent. The number of source positions should be kept constant, i.e. you need to use a ‘template grid’ that is defined at the same approximate spatial resolution as your individual grids. The reason for this is that the numeric data (e.g. in source.avg.pow) should have the same number of elements as the size(source.pos,1).

Best,
Jan-Mathijs




> On 29 Mar 2016, at 09:16, gj <gina.joue at univr.it> wrote:
> 
> Hi Jan-Mathijs,
> 
> Before replacing them with the values from the template grid,
> source_proj.dim is 1-row matrix = [15,18,13]
> and
> source_proj.pos a 3510x3 matrix of doubles
> 
> 
> After, it's
> source_proj.dim is a 1-row matrix = [32,39,34]
> and
> source_proj.pos is a 42432x3 matrix of doubles
> 
> Thanks!
> Gina
> 
>> ------------------------------
>> 
>> Message: 2
>> Date: Fri, 25 Mar 2016 13:38:57 +0000
>> From: "Schoffelen, J.M. (Jan Mathijs)" <jan.schoffelen at donders.ru.nl>
>> To: FieldTrip discussion list <fieldtrip at science.ru.nl>
>> Subject: Re: [FieldTrip] Error with interpn when calling,
>> 	ft_sourceinterpolate
>> Message-ID: <40EEF91F-360C-46B7-9E24-2163FEA99CF6 at donders.ru.nl>
>> Content-Type: text/plain; charset="utf-8"
>> 
>> 
>> Hi Gina,
>> 
>> What is the content of the source_proj.pos and source_proj.dim fields before you replace them with the values from the template grid?
>> Specifically, what?s size(source_proj.pos,1) and source_proj.dim?
>> 
>> Best,
>> Jan-Mathijs
>> 
> _______________________________________________
> fieldtrip mailing list
> fieldtrip at donders.ru.nl
> http://mailman.science.ru.nl/mailman/listinfo/fieldtrip





More information about the fieldtrip mailing list