[FieldTrip] How to use FieldTrip on mat files for Biomag2012?
"Jörn M. Horschig"
jm.horschig at donders.ru.nl
Mon Jun 11 09:20:46 CEST 2012
Dear Vlad,
FieldTrip data reading functions do not work with .mat files, but with
raw data file formats that are the result from direct data recording. If
data is already available in a .mat file, you can just load it in MATLAB
workspace using
/>> load ltmcla_S08.mat/
This should result in some variable, most likely /data/ in your
workspace. You can then call ft_preprocessing like this:
/>> ft_preprocessing(cfg, data)
/I am not quite sure about what data you will obtain, maybe it is
already preprocessed. Be sure to check this by looking at /data.cfg
/Good luck with your project, I hope you have fun and success using
FieldTrip ;)
Best,
Jörn
//
On 6/11/2012 3:40 AM, Vlad Chiriacescu wrote:
> Hello,
>
> 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,
>
> Vlad
>
>
> _______________________________________________
> fieldtrip mailing list
> fieldtrip at science.ru.nl
> http://mailman.science.ru.nl/mailman/listinfo/fieldtrip
--
Jörn M. Horschig
PhD Student
Donders Institute for Brain, Cognition and Behaviour
Centre for Cognitive Neuroimaging
Radboud University Nijmegen
Neuronal Oscillations Group
P.O. Box 9101
NL-6500 HB Nijmegen
The Netherlands
Contact:
E-Mail: jm.horschig at donders.ru.nl
Tel: +31-(0)24-36-68493
Web: http://www.ru.nl/donders
Visiting address:
Trigon, room 2.30
Kapittelweg 29
NL-6525 EN Nijmegen
The Netherlands
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.science.ru.nl/pipermail/fieldtrip/attachments/20120611/ca6f5c92/attachment-0002.html>
More information about the fieldtrip
mailing list