필터 지우기
필터 지우기

Computing mean of each step in measurement data

조회 수: 8 (최근 30일)
Nahashon O
Nahashon O 2020년 6월 17일
댓글: Nahashon O 2020년 6월 18일
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
Nahashon O
Nahashon O 2020년 6월 18일
Thanks, Let me check these out.
Nahashon O
Nahashon O 2020년 6월 18일
Do you have a simple implementation on how to average the blocks where data is changing slowly as you've suggested in the second statement. I will be greatful for a snippet of code on how to implement this.

댓글을 달려면 로그인하십시오.

답변 (1개)

Image Analyst
Image Analyst 2020년 6월 18일
Try movmedian() where the window width is the width of your step width. The median filter removes noise while keeping edges sharp.
  댓글 수: 1
Nahashon O
Nahashon O 2020년 6월 18일
Hi Image Analyst,
I have used movemedian and yes it has removed the noise while keeping the edges sharp.
Now getting the value of each step so that I finally have 125 elements in the column is giving me some trouble. I will appreciate any ideas you through my way. Thanks

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Logical에 대해 자세히 알아보기

제품


릴리스

R2019a

Community Treasure Hunt

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

Start Hunting!

Translated by