필터 지우기
필터 지우기

How can i correct my data?

조회 수: 3 (최근 30일)
Verisign
Verisign 2015년 11월 15일
답변: Star Strider 2015년 11월 15일
How can i correct the error between samples 500 to 503.Please help me!!
  댓글 수: 2
Walter Roberson
Walter Roberson 2015년 11월 15일
We have no idea how you created that data.
Jan
Jan 2015년 11월 15일
Although you think, that the "error" is obvious, it is not exactly defined, how it could be "corrected". If this is e.g. a measurement, this might be the important peak, while the low frequency sine wave is the noise. So please explain exactly, what you want to achieve.

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

답변 (1개)

Star Strider
Star Strider 2015년 11월 15일
If you just wanted to bludgeon your dependent variable vector (here ‘D0’) into compliance, keep the original independent variable vector (for example naming it ‘T0’), delete points 500:503 from both your independent and dependent vectors (perhaps naming the vectors with deleted values ‘T1’ and ‘D1’ respectively), then use interp1 with a nonlinear interpolation method (such as pchip or spline) to create your new ‘patched’ dependent variable vector, ‘D2’:
D2 = interp1(T1, D1, T0, 'spline');
That could work. No promises.

카테고리

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

Community Treasure Hunt

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

Start Hunting!

Translated by