[Eeglablist] Append event problem using pop_editeventvals

pancy at udel.edu pancy at udel.edu
Wed Aug 9 15:13:11 PDT 2023


Dear all,

 

I have a problem using pop_editeventvals to append a new event to an
existing dataset. I have an existing dataset of 1002 events, and my
intention was to append a new event 0.5 seconds after each of these existing
events. I successfully implemented this using a for loop, which worked well
for all events except the last one. I was appending a new event after each
original event, thus the original last event 1002 became 2003 and the script
supposed to append an event 2004 after that. It failed and triggered an
error message: Index exceeds the number of array elements. Index must not
exceed 2003.

 

I suspected that there might be some error in my script.  To troubleshoot, I
attempted to manually add the final event using the GUI. It failed again and
triggered the same error message that "index must not exceed 2003". This
suggests that the issue is not with my script, but rather a limitation with
appending events at the end of a dataset using "pop_editeventvals."

 

Could anyone tell me that how I can create an append event after the last
original event in the dataset?

 

Thanks,

Pancy



More information about the eeglablist mailing list