Locate values in time from signal Peaks

1 回表示 (過去 30 日間)
Julio Martín
Julio Martín 2021 年 11 月 1 日
コメント済み: Julio Martín 2021 年 11 月 1 日
This is an example of a signal after excute RMS. (image).
At this moment, I take Peak EMG values from a signal (x), coding like this:
Peaks(:,d)=findpeaks(V(:,d),'NPeaks',5,'minpeakdistance',100,'MinPeakHeight',0.5);
Now, I would like to know how to locate those 5 peaks exactly in time (y), with milisecond values for each one
Could you help me to code this?
Thank You

採用された回答

Cris LaPierre
Cris LaPierre 2021 年 11 月 1 日
編集済み: Cris LaPierre 2021 年 11 月 1 日
Use the following syntax for findpeaks
I can't comment on how to get the corresponding time from the data you have shared, as I suspect the Y axis is not time in milliseconds. However, if you have a vector of times that corresponds to your signal (same length), then time(locs) corresponds to the value V(locs,d).
  1 件のコメント
Julio Martín
Julio Martín 2021 年 11 月 1 日
Thank you, works perfectly!

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeDescriptive Statistics についてさらに検索

製品

Community Treasure Hunt

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

Start Hunting!

Translated by