필터 지우기
필터 지우기

Info

이 질문은 마감되었습니다. 편집하거나 답변을 올리려면 질문을 다시 여십시오.

Finding redundant maximas and minimas

조회 수: 2 (최근 30일)
SSG_newbiecoder
SSG_newbiecoder 2017년 12월 1일
마감: MATLAB Answer Bot 2021년 8월 20일
Hi. I have found out the maximas and minimas in a wavelet domain signal and now I have to remove the redundancy by finding if in the neighborhood (120 ms) of a positive maximum, there are two negative minima. How can I incorporate this time constraint?
  댓글 수: 1
Greg
Greg 2017년 12월 2일
Share some data and the relevant code you've used so far?
Assuming you used max(...) and min(...), they each will output indices of max and min values. These indices should be applicable to your time vector; then a simple subtraction gives you the time constraint.

답변 (1개)

Image Analyst
Image Analyst 2017년 12월 2일
If you have the Image Processing Toolbox, you can use regionprops() to find the positive maxima location (peak, centroid, start, stop, etc.) and then do something if you find two maxima within a certain distance of each other. Attach your signal (in a .mat file with the paper clip icon) and parameter values (time per element, etc.) if you still need help.

이 질문은 마감되었습니다.

Community Treasure Hunt

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

Start Hunting!

Translated by