Index exceeds Array Bounds - Help!
이전 댓글 표시
Hello everyone - I receive the error "Index exceeds array bounds" , but I can't solve the Problem.
I attache the file, and this is the Line which causes the error:
Pre_Time(idx_loopi).Durchschnittswert(counter,idx_act_Channel_Time)= mean(test(idx_loopi).Channels(idx_act_Channel_Time).Data(idxStart:i));
댓글 수: 3
David H
2020년 6월 9일
I think the reason you are struggling to find the cause of the error is there are so many indexes used in that one line.
Maybe split it into multiple lines just for debug, something like
v1 = Pre_Time(idx_loopi)
v2 = v1.Durchschnittswert(counter,idx_act_Channel_Time);
v3 = test(idx_loopi)
v4 = v3.Channels(idx_act_Channel_Time)
v5 = v4.Data(idxStart:i));
See which gives the error
Also the for loop over "idx_loopi" appears to be over by the time you call this line, do you mean to use this index variable?
Malte Räuchle
2020년 6월 9일
Malte Räuchle
2020년 6월 9일
채택된 답변
추가 답변 (0개)
카테고리
도움말 센터 및 File Exchange에서 Matrix Indexing에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
