PSPicker, a matlab tool for automatic phase picking and event location
View the Project on GitHub ChrisBail/PSPicker
Function made to detect first local extrema b=loca_ext(1,length(a),a,’maxi’);