how to find all points after falling edge

3 views (last 30 days)
Sue MM
Sue MM on 7 May 2019
Commented: dpb on 7 May 2019
Hi,
I have a signal that I am trying to analyze. I want to find all the points after the falling edge and average those points to find the 'average minimum' of that signal. I tried using findpeaks and the find command but not much success there. Any help would be much appreciated, thank you!
  3 Comments
Sue MM
Sue MM on 7 May 2019
Hi, I attached the file below. Column 1 is time, volumn 2 is voltage. When plotted, the voltage is almost like a square wave. I want to find the average of all minimum points thats what I mean by points after the falling edge. Finding the minimum would might not be right in this scenario as there could be some outliers.
dpb
dpb on 7 May 2019
I'd suggest starting with the documentation for findpeaks example looking at a clipped signal that roughly matches what a square wave/your signal does and see if something as simple as that will give you levels against which to set threshold values.
Remember, of course, that a minimum is just the negative of a peak (and vice versa)...

Sign in to comment.

Answers (0)

Community Treasure Hunt

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

Start Hunting!