[FieldTrip] reading .mat in fieldtrip

Bahareh Elahian (belahian) belahian at memphis.edu
Thu Aug 11 19:15:51 CEST 2016


I tried all these options before.

The problem with ft_preprossecing is with cfg.dataset: I gave it my data's file name and path but the error is related to header and it says "unsupported header format"!
And to use ft_predefintrial I need to creat Cfg apart of data that I do not have have anything at this time to include in Cfg.

Thanks for your help!

Bahar


On Aug 11, 2016, at 12:00 PM, Arjen Stolk <a.stolk8 at gmail.com<mailto:a.stolk8 at gmail.com>> wrote:

You could try to make one long trial, and take it from there. Load that matrix stored in your mat file (type 'help load'), and then

data.trial{1,1} = matrix;
data.time{1,1} = 1:size(matrix,2);
data.label{1,1} = 'chan 1';
data.label{2,1} =  'chan 2';
..
data.label{8,1} =  'chan 8';

See that page, and/or type 'help ft_datatype_raw'. When your data is in raw format, you can process it with ft_preprocessing (e.g. to filter) or ft_redefinetrial (to create trials).

Hope that gets you on your way,
Arjen




2016-08-11 9:44 GMT-07:00 Bahareh Elahian (belahian) <belahian at memphis.edu<mailto:belahian at memphis.edu>>:
Thanks for the answer,

I have had a look on this page before and I tried to follow the steps.
The problem is ;I do not have any cfg to define cfg.trl and use newdata = ft_redefinetrial(cfg,data);

Any other idea?



On Aug 11, 2016, at 11:36 AM, Arjen Stolk <a.stolk8 at gmail.com<mailto:a.stolk8 at gmail.com>> wrote:

Hi Bahareh,

To get you started, see this page:
http://www.fieldtriptoolbox.org/faq/how_can_i_import_my_own_dataformat

It describes what fieldtrip expects your raw data to look like.

Arjen

2016-08-11 8:42 GMT-07:00 Bahareh Elahian (belahian) <belahian at memphis.edu<mailto:belahian at memphis.edu>>:
Hi All,

I have a ".mat" file which contais: <8x10350000 double> and sampling rate.
How should I import this data to field trip? By using   [data] = ft_preprocessing( cfg);
  I am getting an error that the data should be in the format of raw or raw + comp.

Any idea?

Thanks!



_______________________________________________
fieldtrip mailing list
fieldtrip at donders.ru.nl<mailto:fieldtrip at donders.ru.nl>
https://mailman.science.ru.nl/mailman/listinfo/fieldtrip

_______________________________________________
fieldtrip mailing list
fieldtrip at donders.ru.nl<mailto:fieldtrip at donders.ru.nl>
https://mailman.science.ru.nl/mailman/listinfo/fieldtrip

_______________________________________________
fieldtrip mailing list
fieldtrip at donders.ru.nl<mailto:fieldtrip at donders.ru.nl>
https://mailman.science.ru.nl/mailman/listinfo/fieldtrip

_______________________________________________
fieldtrip mailing list
fieldtrip at donders.ru.nl<mailto:fieldtrip at donders.ru.nl>
https://mailman.science.ru.nl/mailman/listinfo/fieldtrip
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.science.ru.nl/pipermail/fieldtrip/attachments/20160811/f221d810/attachment-0002.html>


More information about the fieldtrip mailing list