[FieldTrip] Matlab Error

Arnaud Delorme arnodelorme at gmail.com
Thu May 26 20:08:49 CEST 2022

Dear Mehreen,

This is likely due to your MATLAB file not being in a format known by File-IO.
Better to load it from the command line

fileData = load(‘-mat’, ‘myfile.mat’);
rawData = fileData.data; % I am making that up. I do not know where the data will be in your file

Then use EEGLAB menu item “File > Import data > Using EEGLAB functions and plugins > From ASCII/float file or MATLAB array”

And enter the name the MATLAB array (rawdata)
See this page for more information https://eeglab.org/tutorials/04_Import/Importing_Continuous_and_Epoched_Data.html#importing-a-matlab-array

Best wishes,


> On May 26, 2022, at 10:56 AM, Mehreen Inayat via fieldtrip <fieldtrip at science.ru.nl> wrote:
> Hello,
> I am trying to load a .mat file with eeglab using the FILE IO function. When I try and upload the data it sends me a error message that I have attached in this email. I have tried to re download Field Trip but it still does not seem to be working. I would greatly appreciate your help.
> Kind Regards,
> Mehreen Inayat<image001.png>
> _______________________________________________
> fieldtrip mailing list
> https://mailman.science.ru.nl/mailman/listinfo/fieldtrip
> https://doi.org/10.1371/journal.pcbi.1002202

More information about the fieldtrip mailing list