Division of array into subarrays depending on the threshold value
2 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Gova ReDDy
am 11 Jan. 2014
Bearbeitet: Gova ReDDy
am 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
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/154955/image.png)
can someone explain of how to do it.
0 Kommentare
Akzeptierte Antwort
Image Analyst
am 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 Kommentare
Weitere Antworten (1)
Siehe auch
Kategorien
Mehr zu Logical finden Sie in Help Center und File Exchange
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!