ft_sourceinterpolate needs ft_convert_units?
Giovanni Piantoni
g.piantoni at NIN.KNAW.NL
Fri Apr 16 10:13:30 CEST 2010
Dear Masaki,
ft_convert_units is not a new function but has recently been moved
from convert_units.m to ft_convert_units.m
Now, it appears that it got lost in the renaming process. If you check
it was there if you download fieldtrip-20100413 (in the 'forward'
folder) but not in fieldtrip-20100415.
For the moment you can use the fieldtrip-20100413 version. Hopefully
soon, the new fieldtrip version will include ft_convert_units.m again.
Actually these are the missing functions:
XXX at XXX:~/Downloads$ diff fieldtrip-20100413/forward/
fieldtrip-20100415/forward/
Common subdirectories: fieldtrip-20100413/forward/compat and
fieldtrip-20100415/forward/compat
Only in fieldtrip-20100413/forward/: ft_apply_montage.m
Only in fieldtrip-20100413/forward/: ft_convert_units.m
Only in fieldtrip-20100413/forward/: ft_estimate_units.m
Common subdirectories: fieldtrip-20100413/forward/private and
fieldtrip-20100415/forward/private
HTH,
Gio
On Thu, Apr 15, 2010 at 10:39, MARUYAMA Masaki INSERM
<masaki.maruyama at cea.fr> 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/
--
Giovanni Piantoni, Ph.D. student
Dept. Sleep & Cognition
Netherlands Institute for Neuroscience
Meibergdreef 47
1105 BA Amsterdam (NL)
+31 (0)20 5665492
g.piantoni at nin.knaw.nl
www.nin.knaw.nl/research_groups/van_someren_group/
----------------------------------
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