필터 지우기
필터 지우기

How to create indices for specific parts of signal to keep

조회 수: 4 (최근 30일)
Jørgen Fone Pedersen
Jørgen Fone Pedersen 2021년 2월 13일
댓글: Jørgen Fone Pedersen 2021년 2월 14일
Hi
So i have this signal as shown in the plot, this is currently a 50000x1 vector. I would like to extract only the parts where the amplitude increases, these correspond to the extraction and retraction of a piston rod with a 1s dwell time. I know i can do it manually from looking at the plot and find the indices, but i have 40 different signals and would thus like a automatic process for this.
I would like to find the point where each extraction and retraction cycle starts and ends so i can remove the other parts.
thanks for all help.
  댓글 수: 10
dpb
dpb 2021년 2월 14일
" The signal i attached is actually a shortened version where i took the mean of each 1000 datapoints..."
That's a moving-average filter right there. From the looks of the data, that's probably pretty good first cut. You might want to consider using median instead of mean to preserve the absolute magnitude since the mean will have somewhat of a constricting effect on the range of the observations as well as smoothing.
Jørgen Fone Pedersen
Jørgen Fone Pedersen 2021년 2월 14일
Thanks for your answers and tips. I had no idea it was a moving average filter it was called actually.
It seems to be working fine now, I will try with the median also to see how much of a difference it makes.

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

답변 (0개)

카테고리

Help CenterFile Exchange에서 Multirate Signal Processing에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by