Hey,
I am currently using a bioelletronica OT BioLab+ to reccord my EEG signal and export them in .mat, then when I want to import my EEG data I can not and I have the joined error message..
Where do you think the error comes from ? Do I have to export my data in another way before importing it on Brainstorm ?
Thank you for your answer, it helped me but I have still an error message when I want to open it (see the document attached) Do you have a solution for this ? I checked on Matlab and I have all my data there except the data and time are in different matrix, this could be the problem ?
Matlab .mat is not a file format, it is a contained for a list of named variables.
The types of full Matlab structures (= list of variables) that are supported for importing in Brainstorm are the following:
SPM: using file format "MEG/EEG: SPM (.mat/.dat)"
FieldTrip: using file format "MEG/EEG: FieldTrip (.mat)"
If you want to use the options 4 or 5: you need to edit the data structure to write .mat files that can be interpreted correctly by Brainstorm.
Other options are possible:
Develop a reader in Brainstorm to import the native file format directly (in_fopen_...m / in_fread_...m) - if you have a lot of files to process, or other colleagues interested by this feature, it could be interesting, but it would require some time investment to write and debug the code
Export your data in a more standard file format: maybe .edf?
I tried the 1., 2. and 3. options and it is not working for me, for the 4 and 5 options if I understand it right I should have only one variable with the matrix of all the data, and I think it is what I have in my Data matix (see the 2 document below) when I click on the data table... I manually reccorded this data part alone, and if I try to open it as a Matlab matrix it is working, but I have strange overview of the data (see the document attached) Is there something different I am supposed to do ? Also the time duration is not the same here comapre to the duration on matlab or my real trial.
Unfortunately I cannot export in another format except .csv and .sig, when I tried to open my .csv with brainstorm I also had an error ..
Is the data matrix ok ? Do you have any other advice,
It seems fine, but it's transposed. In the plot you shared, the data is interpreted as "48132 channels with 65 samples each", instead of "65 channels with 48132 samples each".
Try to save the Data as a single matrix instead of a cell, and save it in a .mat file. DataMatrix = Data{1,1}; save('your_file.mat', 'DataMatrix');
Then import it to Brainstorm with the Option 5: Matlab matrix
Note that DataMatrix is in the [Ntime × Nchannel] shape. And use 2048 Hz as sampling frequency.
Thank you again I did as you suggested and I can import, but I can not display the time series, I have an error as you can see in the attached file, have you an idea why ?
I can not display the time series, I have an error as you can see in the attached file
When you create your subject, select the option "Default channel file: No".
When importing the data, this will create a default channel file with the appropriate dimensions, instead of whatever you've been defining as the channel file in "Common files".
Before you try importing and processing your own recordings, we strongly recommend you start by following all the introduction tutorials (Section "Get started"), and then the EEG/Epilepsy tutorial, both using the example datasets provided. After this reading, you might find it more appropriate to use the menu "Review raw file" rather than "Import MEG/EEG". https://neuroimage.usc.edu/brainstorm/Tutorials
Ok thank you it is working now, but all my channels data are mimxed, I do not have one line for one EEG electrodes, but I guessed it is something I have to check in channels files or brainstorm channels first ?
Thank you again I will look at the tutorials first,
Marie
I guessed it is something I have to check in channels files or brainstorm channels first ?
If you have anything to change in the channel file, it would be AFTER linking your recordings to the database.
If you can't make this work, you always have the option to write your own Brainstorm data structures, instead of relying on other supported file formats (option 4).
Thank you again I will look at the tutorials first,
It would save you a lot of time to train properly with the software before trying to use it.