Effacer les filtres
Effacer les filtres

Division of array into subarrays depending on the threshold value

2 vues (au cours des 30 derniers jours)
Gova ReDDy
Gova ReDDy le 11 Jan 2014
Modifié(e) : Gova ReDDy le 14 Jan 2014
Hello,
I want to divide a array of signal into sub arrays such that each sub array contains values greater than the threshold(let say 0.08 for each case) untill it encounters again an increment from the threshold.
The subarray should contain the values in between the two thresholds as shown in the figure
can someone explain of how to do it.

Réponse acceptée

Image Analyst
Image Analyst le 11 Jan 2014
In your duplicate thread, I explained how to do it. Threshold
nonZeroElements = signal > 0;
Then use diff to look for where the hump starts and stops.
  8 commentaires
Image Analyst
Image Analyst le 13 Jan 2014
Revert to my code. Whatever you did complicated it and broke it.
Gova ReDDy
Gova ReDDy le 14 Jan 2014
Modifié(e) : Gova ReDDy le 14 Jan 2014
Thanks for your patience, for the replies and guidance so far.
Yes,I was able to find out the problem and it is with the array next saving the remaining values after the two humps.

Connectez-vous pour commenter.

Plus de réponses (1)

Matt J
Matt J le 13 Jan 2014

Catégories

En savoir plus sur Logical dans Help Center et File Exchange

Produits

Community Treasure Hunt

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

Start Hunting!

Translated by