function min_vals=find_average_around_minimum_of_events(events)

min_vals=[];

for i=1:size(events,1)
    event=events(i,1:100);
    [minval minind]=min(event);
    min_vals=[min_vals; mean(event(minind+[-10:10]))];
end