Effacer les filtres
Effacer les filtres

Info

Cette question est clôturée. Rouvrir pour modifier ou répondre.

Finding redundant maximas and minimas

2 vues (au cours des 30 derniers jours)
SSG_newbiecoder
SSG_newbiecoder le 1 Déc 2017
Clôturé : MATLAB Answer Bot le 20 Août 2021
Hi. I have found out the maximas and minimas in a wavelet domain signal and now I have to remove the redundancy by finding if in the neighborhood (120 ms) of a positive maximum, there are two negative minima. How can I incorporate this time constraint?
  1 commentaire
Greg
Greg le 2 Déc 2017
Share some data and the relevant code you've used so far?
Assuming you used max(...) and min(...), they each will output indices of max and min values. These indices should be applicable to your time vector; then a simple subtraction gives you the time constraint.

Réponses (1)

Image Analyst
Image Analyst le 2 Déc 2017
If you have the Image Processing Toolbox, you can use regionprops() to find the positive maxima location (peak, centroid, start, stop, etc.) and then do something if you find two maxima within a certain distance of each other. Attach your signal (in a .mat file with the paper clip icon) and parameter values (time per element, etc.) if you still need help.

Cette question est clôturée.

Produits

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by