MATLAB Answers

0

How to use findpeaks function to give me the peak maxima within a particular length of time? How to find slopes of peaks?

Zuha Yousuf さんによって質問されました 2019 年 10 月 23 日
最新アクティビティ dpb
さんによって 回答されました 2019 年 10 月 24 日
I have a plot of data (voltage on y axis, time in miliseconds on x axis). I want to look at the positive peaks on my data within the first 20 miliseconds. How can I use the findpeaks function to constrain it to finding peaks within that time span, and how can I have it return the exact times of those peaks, rather than the indices?
An additional question is, how can I find the slopes of the peaks within this time span?
I'm attaching my plot below:
Capture.PNG

  0 件のコメント

サインイン to comment.

1 件の回答

回答者: dpb
2019 年 10 月 24 日

The first Q? is you just pass the portion of the time series that encompasses whatever time span you wish -- how many points that is is dependent upon the sample rate -- N=T/dt
The second is described in the doc for findpeaks -- you can return the position of the peaks by passing the sample rate; the locations are converted to the units of the input based on that value.
The last I have no idea what a slope for a peak would be.

  0 件のコメント

サインイン to comment.



Translated by