[Eeglablist] Index error when reading Neuroscan channel .dat

Grace Margaret Harvie ghar8070 at uni.sydney.edu.au
Tue Dec 6 13:45:30 PST 2022


Hi All,

Tried to send this same email yesterday but the filter didn't like it, so I'm sending it again.

I'm trying to read channel locations from the Neuroscan .dat file for a 40 channel Quik-Cap, and I keep getting an index error:


Reading file (lines): 10 20 30 40 45
Index in position 1 exceeds array bounds. Index must not exceed 45.

Error in readneurolocs (line 102)
            locs = locs(tmpind,:);

Error in readlocs (line 413)
       eloc = readneurolocs( filename );

Error in pop_chanedit (line 737)
                        [chans] = readlocs(tmpargs{:});

Error while evaluating UIControl Callback.


I'm not sure if this is something I'm doing/not doing (I am very new to all this, having only been using EEGLAB for a few weeks) or if I've stumbled across a bug? Regardless, any insight anyone has would be greatly appreciated. I have also attached the channel location file in case it is of any use.

Many thanks,
Grace Harvie
PhD Candidate, Faculty of Medicine and Health, University of Sydney
Research Assistant, Brain Dynamics Centre, The Westmead Insitute for Medical Research



More information about the eeglablist mailing list