필터 지우기
필터 지우기

Division of array into subarrays depending on the threshold value

조회 수: 2 (최근 30일)
Gova ReDDy
Gova ReDDy 2014년 1월 11일
편집: Gova ReDDy 2014년 1월 14일
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.

채택된 답변

Image Analyst
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
Image Analyst
Image Analyst 2014년 1월 13일
Revert to my code. Whatever you did complicated it and broke it.
Gova ReDDy
Gova ReDDy 2014년 1월 14일
편집: Gova ReDDy 2014년 1월 14일
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.

댓글을 달려면 로그인하십시오.

추가 답변 (1개)

Matt J
Matt J 2014년 1월 13일

카테고리

Help CenterFile Exchange에서 Logical에 대해 자세히 알아보기

제품

Community Treasure Hunt

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

Start Hunting!

Translated by