How to measure any disturbance in a signal that is exceeding a threshold?

1 次查看(过去 30 天)
Hi,
Assuming having a noisy signal as attached, I'm interested in measuring any disturbance that exceeds a threshold, i.e., 0.12. How can I do that?
Thanks in advance!

采纳的回答

Walter Roberson
Walter Roberson 2023-1-19
wherebig = find(Yvf > 0.12);
  4 个评论
Walter Roberson
Walter Roberson 2023-1-24
[~,LOCS] = findpeaks(Yvf, 'MinPeakHeight', 0.12);
Note that the find() done earlier would locate all of the entries in Yvf > 0.12, whereas findpeaks() with this option would look for locally high points
Walter Roberson
Walter Roberson 2023-1-24
Which one you would use (or which options for findpeaks()) would depend on whether you need to know the immediate start of the disturbance crossing a threshold, or if you want instead to know where the peak of the disturbance was.

请先登录,再进行评论。

更多回答(0 个)

Community Treasure Hunt

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

Start Hunting!

Translated by