Division of array into subarrays depending on the threshold value
5 ビュー (過去 30 日間)
古いコメントを表示
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.
0 件のコメント
採用された回答
Image Analyst
2014 年 1 月 11 日
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 件のコメント
その他の回答 (1 件)
参考
カテゴリ
Help Center および File Exchange で Matrix Indexing についてさらに検索
製品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!

