[FieldTrip] ft_appenddata() and trials

Schoffelen, J.M. (Jan Mathijs) jan.schoffelen at donders.ru.nl
Wed Oct 19 22:33:04 CEST 2016

Hi Mona,
I wonder why you would want this. Is the time across the different files continuous, i.e. does the end of one file fit directly onto the next?

If so, but you really need to be sure about this, you can use the good old-fashioned cat command: trial{1} = cat(2,data.trial{:}); time{1} = cat(2,data.time{:});
data.trial = trial;data.time = time;


On 19 Oct 2016, at 21:33, Wong-Barnum, Mona <mona at sdsc.edu<mailto:mona at sdsc.edu>> wrote:


I have 14 Neuromag .fif files recorded for a single subject; each file contains about 20 minutes of recording for a total of about 4.6 hours of recording.  I’d like to concatenate the data together.  I used ft_appenddata() but ti seems to have created 14 trials.  How can I get all the data to go into a single trial?


    Mona Wong
    Web & iPad Application Developer
    San Diego Supercomputer Center

    "The two most important days in
     your life are the day you are born
     and the day you find out why."
                                      -- Mark Twain

fieldtrip mailing list
fieldtrip at donders.ru.nl<mailto:fieldtrip at donders.ru.nl>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.science.ru.nl/pipermail/fieldtrip/attachments/20161019/d7b76dd8/attachment-0002.html>

More information about the fieldtrip mailing list