find_local_max.m¶
Basic Information¶
SYNTAX: maxloc = find_local_max(x,y,max_locs,binsize)
PURPOSE: find local maxima
INPUT:
x = x data for array y
y = data to find local maxima in
max_locs - number of maxima locations
binsize = bin size - find only the max value in each bin of this size
OUTPUT:
maxloc = indices in arrays (x,y) of maxima