Print

Print


Hi Holly,

There is no such thing as 'Fieldtrip file format'. Fieldtrip has some data
structures that the users are free to save in any way the see fit. This is
why there is no generic way to convert Fieldtrip data with the 'Convert'
button. You should use the function spm_eeg_ft2spm. There is an example in
man/example_scripts for pre-processing data with FT and converting to SPM.
You might still have some problems because FT data does not usually contain
fiducials which SPM needs so perhaps you should also get at least one
original dataset.

Re databrowser, this is not out yet. Hopefully there will be a update by the
end of the week.

Best,

Vladimir


On 8 Mar 2011, at 12:52, Holly Rossiter <[log in to unmask]> wrote:

Hi Vladimir,



I’m trying to analyse some data that I got from another lab and he said he
had put it into fieldtrip format. They are in .mat files and when I try to
convert them in SPM they give this error...



??? Error using ==> eq

Matrix dimensions must agree.



Error in ==> getfiletype at 337

                elseif all(s([1:4])==abs('Neuron'));



Error in ==> sopen at 141

        HDR = getfiletype(HDR);



Error in ==> read_biosig_header at 35

biosig = sopen(filename,'r');



Error in ==> ft_read_header at 1334

      hdr = read_biosig_header(filename);



Error in ==> spm_eeg_convert at 72

hdr = ft_read_header(S.dataset, 'fallback', 'biosig', 'headerformat',

S.inputformat);



Error in ==> spm_eeg_convert_ui at 89

D = spm_eeg_convert(S);

??? Error while evaluating uicontrol Callback



Do you know what this error means and how I can convert the data to an SPM
friendly format?



Thanks,



Holly



P.S. Has the SPM update with databrowser come out yet?