Load EEG.mat files

Hello,
Happy New Year!
I am encountering this error while attempting to load an EEG signal .mat file, and I would appreciate your guidance on the matter (Error: Line 56: in_data_fieldtrip
** This file is not a valid FieldTrip recordings structure (timelocked or raw).
** Missing fields: "time", "label", "avg" or "trial".
**
** Call stack:
** >in_data_fieldtrip.m at 56
** >in_fopen.m at 215
** >import_raw.m at 132
** >bst_call.m at 28
** >tree_callbacks.m>@(h,ev)bst_call(@import_raw,,,iSubject) at 674)

Could you please assist me in resolving this error?

Thank you in advance for your help.

Make sure you are trying to load a valid FieldTrip EEG file: does it open properly using FieldTrip?

1 Like

How are you loading this data? What is the origin and format of the data?
It seems that you are selecting FieldTrip data from the list, but the format is not correct.

Thank you for your prompt response. I successfully loaded data with a size of 6420480. However, when attempting to load a signal with dimensions of 3064*20480, the program fails to process it and ends up loading a significant number of trials through brainstorm.

Could you please clarify if it is not possible to load 30 trials directly, or should I average the data beforehand?

Thank you for your assistance.

It's great to hear this.

What do you mean by 6420480? is that the total size?
image

Can you please report the correct size and number.

My guess is that the data is too big to be displayed in your computer.

I apologize for the mistakes in my previous communication; I meant to refer to 64 channels and 20,480 samples (64 * 20480).

I have a question regarding loading 30 trials of this signal. I am encountering difficulties loading only the desired number of trials, as many files seem to be loading instead of the intended 30 trials As indicated in the figure above. (30 * 64 * 20480)

Could you please assist me in resolving this issue? Your guidance would be greatly appreciated.

Thank you for your attention.

Can you explain the steps you followed in order to have all these files loaded into the database?

It seems the data is not imported to the BSTdatabase since they are displayed as raw [just a link].

I am currently encountering an issue while uploading EEG signal files saved in .mat format. When I attempt to upload all trials using options 1 (Review raw file) or 2 (Import MEG/EEG), the process becomes problematic. Specifically, when loading a signal with 30 trials (30 * 64 * 20480), an excessive number of files are uploaded, causing the program to fail to stop as intended.

I would appreciate your assistance in resolving this matter.

What file type are you selecting from the GUI?

What is the content of this MatFile, and how many files are in the folder?
It seems that Brainstorm sees multiple files in that folder, and they are all loaded.
Can you share one file so I can check it?


The file exceeds 4MB and can't be uploaded here.

It seems that you already have 30 trials inside each file.
You need to divide it into 30 separate files with nChannels x nTimes in order to import it correctly.

Thank you very much!