[FieldTrip] How to use FieldTrip on mat files for Biomag2012?
r.oostenveld at donders.ru.nl
Mon Jun 11 09:21:25 CEST 2012
The Biomag 2012 data competition is not part of the FieldTrip project. Of course you should be able to use FieldTrip for parts (or all) of the analysis, but it might be that the data is provided in a file format that is not directly compatible with FieldTrip (see http://fieldtrip.fcdonders.nl/dataformat). The specific error that you get suggests that the data that is distributed was already preprocessed and is in MATLAB format and that you should just do "load <datafile>". Note that the content you might find in the mat-file could very well be formatted in a way that FieldTrip is not directly able to process it further.
On http://www.biomag2012.org/content/data-analysis-competition at the bottom is an email address that is specific to the competition, I suggest you contact that with your questions that are specific to the the competition.
On 11 Jun 2012, at 3:40, Vlad Chiriacescu wrote:
> I am working on a school project related to the Biomag 2012 analysis competition.
> I have downloaded a .zip file from ftp://ftp.fcdonders.nl/pub/biomag2012/.
> I have extracted the content and I am interested in the second objective,
> the one related to long-term memory representations (folder data2).
> I was able to load the 2 mat files into Matlab workspace.
> I was also able to use FieldTrip functions on tutorial code.
> However, when I try to use ft_preprocessing on one of the mat files I get an error.
> Here is the code I wrote:
> cfg1.dataset = 'ltmcla_S08.mat'
> data_org = ft_preprocessing(cfg1)
> And the error is:
> ??? Error using ==> ft_read_header at 1639
> unsupported header format (matlab)
> Error in ==> ft_preprocessing at 344
> hdr = ft_read_header(cfg.headerfile, 'headerformat', cfg.headerformat);
> I saw a tutorial using ft_read_header, ft_read_data and ft_write_data
> on a .dat file that was converting it to a mat/bin pair.
> However, I do not have a .dat file, I have a .mat file.
> Just in case is necessary, I write some details of the .mat file:
> Is a 1*1 matlab structure with the following fields:
> data, channel, design, time, fs, dim.
> How could I use FieldTrip on this data? If there are more ways, which one would be the fastest/easiest?
> Thanks a lot,
> fieldtrip mailing list
> fieldtrip at science.ru.nl
More information about the fieldtrip