MATLAB: Calculate relative values from peaks

emgMATLABmedicalsignal processing

Hi I'd like to know how to calculate relative values from one or several peaks. If I use an EMG signal, I need to know, peak value and previus concentric contration and next eccentric contracction as shows the image Can anybody help me? Thanks!

Best Answer

The easiest way to define your peaks and troughs of your signal is to use the Signal Processing Toolbox findpeaks function. Use it on your original signal to find the peaks, then use it in a separate call on the negative of your signal to define the troughs.