PSPicker, a matlab tool for automatic phase picking and event location
Function to calculate the segment between first and last value of
function. Input and output have the same size.
input: function (traces has to be ordered by column)
ouput: the segment vector
Input: ‘f’ matrix or array containing the data
Ouptut: ‘segment’ linear segment