Hi there,
I was wondering if there was a good way of exporting preprocessed trial data into a singe matrix while also excluding bad trials (in a single .mat file). In short, the preprocessing, trial rejection, and artifact detection capabilities of Brainstorm are very useful for my lab doing rodent ephys, though there are many analyses and such that we would like to perform that Brainstorm does not yet offer.
It would be a ideal if we could load our data from the .pl2 files (already works perfectly), preprocess and clean the data (also works perfectly), then export the data for use in Matlab (not yet implemented?).
I see that Brainstorm currently contains each trial data in a separate .m file with a [signal] x [time] matrix, so it shouldn't be too difficult to combine these into a single [trial] x [signal] x [time] matrix. I'm comfortable writing a script for this but am wondering if there is an easier solution or if there are any example scripts around this or a similar issue that anyone could provide.
Thanks,
Michael Totty
