Edge Finding Program to Fix Data?

조회 수: 6 (최근 30일)
L
L 2018년 12월 21일
댓글: Image Analyst 2018년 12월 21일
I am looking at data that has a "bit flip" error (see image below). Is there a solution I could execute in Matlab like an edge finding program to correct these errors in my various data sets? Thank you.
Screen Shot 2018-12-21 at 1.52.15 PM.png
  댓글 수: 1
Image Analyst
Image Analyst 2018년 12월 21일
Is the green, filtered line the desired signal, and the blue one is the "bad" one that needs to be turned into the green one? If so, how are we supposed to know which peak to turn upside down and which to leave alone? And how much to shift the data vertically? I see a down shift of 1.5 units from the blue to the green.
Attach your data with the paper clip icon if you need more help.

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

답변 (1개)

Star Strider
Star Strider 2018년 12월 21일
It appears that the discontinuities in the blue line near the regions you likely want to ‘correct’ (if I understand your Question) are the minimum values of those data. Probably the easiest way to find them is to use the Signal Processing Toolbox findpeaks (link) function with an inverted (negated) signal. Don’t worry about the negation, since you want the indices (the second ‘locs’ output). Another option is the islocalmin (link) (R2017b and later) function.

카테고리

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

Community Treasure Hunt

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

Start Hunting!

Translated by