- Detrend and Smooth the Signal: This helps in reducing the impact of noise. You can use detrend to remove the linear trend and smoothdata for smoothing the signal.
- Find Extrema: Use findpeaks to find maxima. For minima, you can invert the signal and use findpeaks again.
- Clustering Extrema : If the extrema are clustered in groups (due to noise or signal characteristics), you might want to cluster them to find representative extrema. K-means clustering (kmeans) on the positions of these extrema can be useful, though it's optional and depends on your specific signal characteristics.
Analyse cluster of extrema clusters
3 ビュー (過去 30 日間)
古いコメントを表示
Hi all
I am analysing a signal and would like to know the (periodic) distance of my extrema. Is there any smart function which can cluster those based on the function value and then derive the average distance between maximum and minimum?
Taking all extrema into account doesn´t make sense due to the noises and different signal at start and beginning.
Thanks ahead
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1678001/image.png)
0 件のコメント
回答 (1 件)
prabhat kumar sharma
2024 年 5 月 6 日
Hi Florian,
I understand that you want to analyze signals and identify the periodic distance between extrema (maximum and minimum points) in a way that is robust against noise, you can use a combination of signal processing techniques and clustering. MATLAB provides a comprehensive set of tools for this purpose.
Here's a general steps that you might find useful:
You can refer the documentations below:
I hope it helps!
0 件のコメント
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!