ft_sourceinterpolate needs ft_convert_units?

Robert Oostenveld r.oostenveld at FCDONDERS.RU.NL
Fri Apr 16 10:11:44 CEST 2010


Dear Masaki

Sorry for the ft_convert_units and ft_estimate units functions missing
in the last few releases of fieldtrip. That is due to a bug in our SVN
version control system. I will fix it. In the mean time, please find
the tro functions attached. They should go into the fieldtrip/forward
directory.

best regards,
Robert


----------------------------------
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. See also http://listserv.surfnet.nl/archives/fieldtrip.html and http://www.ru.nl/neuroimaging/fieldtrip.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ft_estimate_units.m
Type: application/octet-stream
Size: 811 bytes
Desc: not available
URL: <http://mailman.science.ru.nl/pipermail/fieldtrip/attachments/20100416/f5afeb81/attachment-0004.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ft_convert_units.m
Type: application/octet-stream
Size: 5430 bytes
Desc: not available
URL: <http://mailman.science.ru.nl/pipermail/fieldtrip/attachments/20100416/f5afeb81/attachment-0005.obj>
-------------- next part --------------



On 15 Apr 2010, at 10:39, MARUYAMA Masaki INSERM wrote:

> Hello,
>
>
> From the last version of fieldtrip, ft_sourceinterpolate does not  
> work since it cannot find ft_convert_units. I think ft_convert_units  
> is a new function, and it has not implemented yet in Fieldtrip.  
> Could you please check this issue?  I attached an error message when  
> I run ft_sourceinterpolate.
>
> %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
> the input is source data with 90364 positions
> ??? Undefined function or method 'ft_convert_units' for input  
> arguments of type 'struct'.
> Error in ==> checkdata at 340
>     data = ft_convert_units(data);
> Error in ==> ft_sourceinterpolate at 60
> functional = checkdata(functional, 'datatype', 'volume', 'inside',  
> 'logical', 'feedback', 'yes', 'hasunits', 'yes');
> Error in ==> Neurospin_SourceLevelAnalysis_V4 at 442
>             source_int =  
> ft_sourceinterpolate(cfg,source_ind_temp,mri_ctf);
>
> %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
>
>
> By the way, I have corrected the unit of positions manually (cmàmm),  
> such as "source_ind_temp.pos = source_ind_temp.pos*10" before the  
> interpolation. I'm afraid that my method may become incorrect after  
> the new version, since the new function seems to scale the unit  
> automatically. I would appreciate if you could give me an advice.
>
>
> With best regards,
> Masaki Maruyama
>
> ----------------------------------
>
> 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.
>
> http://listserv.surfnet.nl/archives/fieldtrip.html
>
> http://www.ru.nl/fcdonders/fieldtrip/
>


----------------------------------
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. See also http://listserv.surfnet.nl/archives/fieldtrip.html and http://www.ru.nl/neuroimaging/fieldtrip.


More information about the fieldtrip mailing list