Computing mean of each step in measurement data
Show older comments
Hi everyone,
I have measurement data ‘measurement_data.mat’. I would like to compute the mean at each step where the value is not changing by a huge value. By eyeballing the plot of the data for the first column, it can be seen there are 125 steps. After computing the mean at each step I would like the data to finally be a matrix of 125x4 from being a matrix of 17850x4.

I have tried taking the mean of every n elements to get a meaningful result but it hasn't worked. The step size is not consistent all through.
Any kind of help or suggestion will be appreciated.
Thanks in Advance.
3 Comments
Andrei Smoliakov
on 17 Jun 2020
Edited: Andrei Smoliakov
on 17 Jun 2020
Nahashon O
on 18 Jun 2020
Nahashon O
on 18 Jun 2020
Answers (1)
Image Analyst
on 18 Jun 2020
0 votes
Try movmedian() where the window width is the width of your step width. The median filter removes noise while keeping edges sharp.
1 Comment
Nahashon O
on 18 Jun 2020
Categories
Find more on Time Series Events in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!