Calculate relative values from peaks
2 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Julio Martín
el 20 de Mayo de 2016
Comentada: Star Strider
el 7 de Jun. de 2016
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!
2 comentarios
Star Strider
el 20 de Mayo de 2016
No image.
I doubt you can tell a concentric contraction from an eccentric contraction from the EMG alone. (I’ve not worked with EMGs in a while, and don’t know your experimental setup, so I would need your data to confirm this.)
To upload the image, use the brown-framed green landscape picture icon. Remember to complete both the ‘Choose file’ and ‘Insert image’ steps.
Respuesta aceptada
Star Strider
el 20 de Mayo de 2016
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.
8 comentarios
Star Strider
el 7 de Jun. de 2016
You will get different results if your calls to findpeaks are different. You have to experiment to get the result you want.
It may be worthwhile for you to do a fft of your data to define the valid data and noise frequencies, then design a digital filter for your original data in that plot to eliminate some of the noise. Then do your findpeaks call on the filtered data.
There are several ways to design filters. My procedure is here: How to design a lowpass filter for ocean wave data in Matlab? You will have to decide whether you want a low-pass or band-pass filter, then experiment with the filter passband to get the result you want.
The problem is that your signal has so much noise that finding the peaks you want to use to define the concentric and eccentric contractions are going to be difficult without filtering it first. Give the filter idea a go and see if that improves your ability to identify the information you want.
Más respuestas (0)
Ver también
Categorías
Más información sobre Spectral Measurements en Help Center y File Exchange.
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!