Error when running a script: 'Index exceeds matrix dimensions.' Help
1 次查看(过去 30 天)
显示 更早的评论
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.
0 个评论
采纳的回答
Adam
2015-4-2
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.
0 个评论
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 EEG/MEG/ECoG 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!