Related to calculate average within particular range of graph

1 次查看(过去 30 天)
Hello,
I am new to matlab. I got signals from the sensors for force with respect to time. The values of time and force are stored in respetive columns after importing it in matlab through excel file. Thus, I need to find the average values within particular range of values in graph (highlighted in red colour). Can someone help?
Thanks
Preshit

采纳的回答

Star Strider
Star Strider 2019-9-18
Use the negative of your signal (essentially flipping it upside-down) so the sharp dips are now peaks. Then use either findpeaks or islocalmax to isolate the indices of the peaks. Use those indices to calculate the mean between them. (If I had your signal, I could write code specific to your problem. With only a picture, I can only describe the approach.)
  4 个评论
Preshit Limje
Preshit Limje 2019-9-18
Hello Strider,
Thanks a lot. I much appreciate your help for solving this problem.

请先登录,再进行评论。

更多回答(0 个)

标签

Community Treasure Hunt

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

Start Hunting!

Translated by