Combining repetitive curves into one average curve

8 views (last 30 days)
So I have this curve that I obtained/created from mulitple discrete time signals. I was wondering if it was possible to combine these curves into one average curve? I need to do some calculations based on amplitude, peak width, etc. and it will be easier if the curves were averaged. The figure only shows 4 waves but theres approximately 1000 in the full dataset.
  4 Comments
dpb
dpb on 20 Feb 2021
Same as I outlined above -- once you find the breakpoints, iterate through those pairs and then interpolate them over a common range to average.

Sign in to comment.

Accepted Answer

Star Strider
Star Strider on 20 Feb 2021
One option is to do something similar to the approach in How do I find and plot the average of action potentials from a trace?
  6 Comments
Dhakshenan Pushparajan
Dhakshenan Pushparajan on 24 Feb 2021
Thank you so much!! This is perfect
If you don't mind me asking, how did you get so good at MATLAB. I'm just starting out and want to improve
Star Strider
Star Strider on 24 Feb 2021
As always, my pleasure!
I have been using MATLAB since the early 1990s, and have been involved in Answers for about the last 7 or 8 years. In addition to writing code for my own applications, working with Answers problems has been a benefit to me, because it allowed me to experiment and learn.

Sign in to comment.

More Answers (0)

Community Treasure Hunt

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

Start Hunting!