Problem with Fieldtrip conversion

Vladimir Litvak v.litvak at ION.UCL.AC.UK
Fri Mar 5 16:17:49 CET 2010


Hi Michael,

I'm glad to hear that you started looking at SPM :-)  This is more of
an SPM than a Fieldtrip question so perhaps the discussion should move
to the SPM mailing list. Just from looking at the error message the
problem doesn't look familiar. Could you send me your file with the
struct (via yousendit.com if it's big) and I'll try to reproduce it?

Best,

Vladimir

On Fri, Mar 5, 2010 at 2:59 PM, Michael Wibral <michael.wibral at web.de> wrote:
> Dear FT/SPM Listusers,
>
> I am having a (hopefully) trivial problem with converting Fieldtrip MEG data structures to spm8.
> Here's what I did:
>
> 0. Patch spm8 to r3684
> 1. Load the Fieldtrip data from /path/filename. They contain a variable (FTstruct) named DataFT.
> 2. Call spm_eeg_ft2spm(DataFT, '/path/filename')
>
> The error I get is:
>
> checkmeeg: no channel type, assigning default
> checkmeeg: no units, assigning default
> checkmeeg: transform type missing, assigning default
> checkmeeg: data scale missing, assigning default
>
> ??? Undefined function or method 'fname' for input arguments of type 'struct'.
> Error in ==> file_array.subsref>access_fields at 129         case 'fname',      t = fname(obj);
>
> Error in ==> file_array.subsref at 17         varargout = access_fields(obj,subs);
>
> Error in ==> checkmeeg at 203     if ~isa(meegstruct.data.y, 'file_array') || isempty(fileparts(meegstruct.data.y.fname)) ...
>
> Error in ==> meeg.meeg at 109         [OK D] = checkmeeg(varargin{1}, 'basic');
>
> Error in ==> spm_eeg_ft2spm at 138 D = meeg(D);
>
> Any help is very much appreciated.
>
> Michael
>
> ----------------------------------
> 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.

----------------------------------
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