EEGLAB error: 'array exceeds maximum array size preference' due to high number of channels

13 views (last 30 days)
using the EEGLAB loadeeg.m ( )function for some of the .eeg files I am using apparently the number of channels exceeds 65000 (which I guess is not reasonable) and so I run into the following error:
Requested 65340x4287563198 (2087275.5GB) array exceeds maximum array size preference. Creation of arrays greater than
this limit may take a long time and cause MATLAB to become unresponsive. See array size limit or preference panel for
more information.
It's clear that matlab gives me this error trying to create such a big matrix. Does anyone know how to check what's in my .eeg file or what's the structure of it? I would like to take a look at the data of the file to figure out what might have gone wrong.
Maximilian Nentwich
Maximilian Nentwich on 12 Feb 2018
Yes, Walter is right. Someone changed the name of the file I was trying to open and therefore something didn't work out when reading it. Maybe checking the header of the file can help.

Sign in to comment.

Answers (0)


Find more on EEG/MEG/ECoG in Help Center and File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by