[FieldTrip] ft_read_vol with Neuromag
Robert Oostenveld
r.oostenveld at donders.ru.nl
Mon May 23 09:41:17 CEST 2011
Hi Elena
Although some years ago FieldTrip was supporting volume conduction
models from Neuromag using the meg-pd and the (closed source) meg-calc
toolboxes from the company itself, I suspect that nobody has been
using them the last few years. The mex files in meg-pd and meg-calc
were often problematic to work with due to platform and library
issues. The single-shell volume conduction model that is avaialble in
Fieldtrip is currently the preferred volume model.
Looking at the code, there is indeed a bug since cfg.gradfile is not
defined. If you want to continue along the path of meg-pd and meg-
calc, you could hardcode the filename and see how far you get. But I'd
suspect that you don't have the required (commercial) mex files from
meg-calc anyway.
best regards
Robert
On 20 May 2011, at 14:00, Elena Orekhova wrote:
> Hi,
> I try to read volume from the Neuromag .fif file using
>
> vol = ft_read_vol(NEUROMAG_FIF_FILE_NAME, 'fileformat',
> 'neuromag_fif')
>
> I get the error:
> ***********************
> ??? Undefined variable "cfg" or class "cfg.gradfile".
>
> Error in ==> ft_read_vol at 77
> fprintf('using Neuromag gradiometer definition from %s\n',
> cfg.gradfile);
>
> Any advice?
>
> Elena
>
> Elena V Orekhova, Ph.D.
> Inst. Neuroscience and Physiology
> University of Gothenburg
> S-413 45 Gothenburg, Sweden
> phone: +46 31 342 48 02
> elena at neuro.gu.se
> _______________________________________________
> fieldtrip mailing list
> fieldtrip at donders.ru.nl
> http://mailman.science.ru.nl/mailman/listinfo/fieldtrip
More information about the fieldtrip
mailing list