Ho to find peaks at step graphs?

2 次查看(过去 30 天)
Zach Morag
Zach Morag 2021-12-9
回答: Chunru 2021-12-9
Hi all,
how can i find peaks/first index of each step at the step graph?
I tried to use "find local maxima" function but i always get vector of zeros
the graphs represnts cumulative volume that deleiverd by step motor and I want to find the volume of each step
example of it is detailed below:
Thx,
Zach

回答(1 个)

Chunru
Chunru 2021-12-9
Try to "detrend" the data first; then apply "findpeaks".

产品


版本

R2021a

Community Treasure Hunt

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

Start Hunting!

Translated by