Hello, I am trying to add some events from a .csv file.
The csv file has 3 column : label, time, duration.
The time and duration are given in seconds.
I go in File --> Add Events from file --> .csv or .txt
Systematically, I got this error:
Error: Line 65: Index exceeds the number of array elements (0).
** ** Call stack:
** >in_events_csv.m at 65
** >import_events.m at 148
** >import_events.m at 80
** >panel_record.m>ImportEvents at 2513
** >bst_call.m at 28 ** >panel_record.m>@(h,ev)bst_call(@ImportEvents) at 140
Does somebody know why?
Thanks in advance for your help!
Your description of the file is correct, but it looks like the actual format of the file is not correct.
Make sure that the file does not contain anything but the events definition (no header line with the name of the columns, no empty lines, no extra info at the end, no extra columns).
The values must me separated with COMMAS -
, - and all the other characters will be interpreted (including spaces and tabulations).
If you can't figure out what the problem is, please share your file here (if you can't post it here, upload it somewhere and post the download link here).
Excuse me, I would like to ask what contents/columns the csv file includes. Thanks!
just these three columns without any other information.