Filter löschen
Filter löschen

Error when running a script: 'Index exceeds matrix dimensions.' Help

5 Ansichten (letzte 30 Tage)
VickyM
VickyM am 2 Apr. 2015
Beantwortet: Adam am 2 Apr. 2015
I've been given a script to run to merge EEG and psychophysics test files and am having some difficulty running it. Part of the way through the script a new variable ('MatchedEEG') is created from an existing matrix, containing all EEG traces up until a given time point (Endidx):
MatchedEEG = EEGtraces (:,1:Endidx)
I receive an error saying: 'Index exceeds matrix dimensions.' How can the index exceed the matrix dimensions if no pre-determined matrix dimensions are specified for 'MatchedEEG'? Help.

Akzeptierte Antwort

Adam
Adam am 2 Apr. 2015
The index 'Endidx' presumably exceeds the size of the 2nd dimension of EEGtraces. It is indexing into that matrix that is causing teh error, not the one you assign to.

Weitere Antworten (0)

Kategorien

Mehr zu EEG/MEG/ECoG finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by