How to filter data that detects peaks or irregularities?
13 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/262321/image.jpeg)
I am trying to build a code that detects these peaks. This graph represents the change in position in time. What I am doing is read the distance timestep by timestep.
I compare the new distance minus the old distance, if this values difference is higher than 5 meters I assume theres a peak. The problem is that each dataset have undefined number of peaks and undefined number of green datasets to save.
How can I solve this?
0 comentarios
Respuestas (1)
Star Strider
el 18 de En. de 2020
Several functions already exist to do that, among which are findpeaks, islocalmax, ischange, and others.
7 comentarios
Image Analyst
el 18 de En. de 2020
Mariana, make it easy for people to help you, not hard. Attach your data in a .mat file with the paper clip icon after you read this link.
Ver también
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!