Division of array into subarrays depending on the threshold value
2 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Gova ReDDy
el 11 de En. de 2014
Editada: Gova ReDDy
el 14 de En. de 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 comentarios
Respuesta aceptada
Image Analyst
el 11 de En. de 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 comentarios
Más respuestas (1)
Ver también
Categorías
Más información sobre Logical en Help Center y File Exchange.
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!