How to measure any disturbance in a signal that is exceeding a threshold?
2 ビュー (過去 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!
2 件のコメント
Walter Roberson
2023 年 1 月 19 日
Is that 0.12 an absolute value, or is it a relative value? If it is relative, what is it relative to?
採用された回答
Walter Roberson
2023 年 1 月 19 日
wherebig = find(Yvf > 0.12);
4 件のコメント
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
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!