I have a 351×117 matrix, with each column representing a time series data. I am looking to write a code that can find the max and min amplitudes along each column (time series). The max and min amplitudes have to be taken only at upward crossing of the waves. See attached picture. I need to find the green amplitudes, not the red ones. I understand that findpeaks can do this, but I am dealing with 117 time series (117 columns in the matrix), and was hoping to write a loop that can do this. Any ideas?
MATLAB: Finding max and min amplitudes from upward crossing
findpeaksupward-crossingzero crossing
Best Answer