MATLAB: Largest Positive Peak in an interval

maximumpeakSignal Processing Toolbox

I have a discrete sample (sampled at 256 Hz). How to identify the largest positive peak and the corresponding latency time in the period of 300-600 ms?

Best Answer

Use the findpeaks function. Experiment with the name-value pair arguments to get the result you want.