NOCIONS / letswave7

In developing
31 stars 7 forks source link

FLW_selection.m - index exeeds array elements #20

Open KlaraSaary opened 1 year ago

KlaraSaary commented 1 year ago

Current line 514 in FLW_selection.m (function get_header()): events_temp=header_in.events(find(event_epoch_list ==temp_idx));

Error "Index exceeds number of array elements" occurs on several occasions.

If line 514 is changed to:

events_temp=header_in.events(find(ismember(event_epoch_list,temp_idx)));

no error occurs.