Problems loading g.tec .mat file

Hello,

Im trying to load my eeg data. Review raw file gets this -->

** Error: Line 35: in_fopen_gtec (line 35)
** Invalid g.tec Matlab export: Missing field “P_C_S”.
**
** Call stack:
** >in_fopen_gtec.m at 35
** >in_fopen.m at 79
** >import_raw.m at 124
** >bst_call.m at 28
** >tree_callbacks.m>@(h,ev)bst_call(@import_raw,[],[],iSubject) at 590

The .mat file was prepared using Simulink and .hdf5 files aren’t available.
Could you please help me out on how to fix this?

Matlab version: 2015a
Brainstorm: updated a week ago.

Hello,

Please send me an example data file so I can have a look at it.
Upload the file somewhere (eg. dropbox, google drive…), then post the link here, or send it to me as a private message if it contains sensitive data.

Thanks
Francois

Thank you for your reply.
I will send you a private message with a sample data.

Regards,
Gajanan

Thank you for the file.

Your file is not a file saved in the gtec format. It contains only a data matrix “y”, with no additional header information.
The gtec files contain a header in a field name P_C_S.
You can open this file with the matlab command “load”, you’ll be able to access all the information it has to offer.

You can read this file with the file format “EEG: Matlab matrix (*.mat)”, but you will have to import the names/types/positions of the EEG channels separately, as this information is not available in the file.

Ok i understand. Some extra steps to do.
In that sense, bdf files makes life a bit more easier.
Thank you for the explanation.

Cheers
G

Dear Francois,

I have the same problem. The .mat file that I want to import is not saved in gtec format. Is there any way that I can save it as gtec format?
There are a lot of information in the .mat file (Channel locations, events, ICA weigths,...) that I do not know how to import in the brainstorm using "EEG. Matlab matrix (.mat)".

I appreciate your help.
Best regards,
Sima.

Dear Francois,

I have two versions of the EEG data set. One is the post processed data in .mat format, which is not in gtec format and I could not import it in the brainstorm.
I also have the raw EEG data in the .eeg and .vhdr format. I tried to import the raw data and I get this error:matlab_error

I would really appreciate if you help me import either of these files.

Best regards,
Sima.

The .mat file that I want to import is not saved in gtec format.

Where are your files coming from?
The list of file formats supported by Brainstorm is available here:
http://neuroimage.usc.edu/brainstorm/Introduction#Supported_file_formats

Is there any way that I can save it as gtec format?

Brainstorm does not save files in g.tec format.

I have two versions of the EEG data set. One is the post processed data in .mat format, which is not in gtec format and I could not import it in the brainstorm.

If you are using a standard file format (like EEGLAB), you can import this directly in Brainstorm.
If the files were generated with custom processing scripts, you need to write your own conversion scripts into Brainstorm data structures. They are all documented here:
https://neuroimage.usc.edu/brainstorm/Tutorials/Scripting#File_structures

I also have the raw EEG data in the .eeg and .vhdr format.

You didn't select the correct file format.
For importing .eeg/.vhdr files, select the file format "EEG: BrainAmp"

Dear Francois,

Thank you for your help.
I really appreciate it.

Best regards,
Sima.