필터 지우기
필터 지우기

trying to make data set from non-equally spaced to eqally spaced

조회 수: 4 (최근 30일)
JK
JK 2017년 5월 23일
댓글: Star Strider 2017년 5월 24일
I have two sets of data which are not equally spaced. What I am trying to do is to use interpolation to get an equally space data.
wave1 --> data in x-axis (1xN) abs1 --> data in y-axis (1xN)
wave2 = 900:0.1:1089; abs3 = interp1(wave1, abs1, wave2, 'spline');
Are two sentences a right way to get an equally space data which are wave2 & abs2?

채택된 답변

Star Strider
Star Strider 2017년 5월 23일
That appears correct to me. I would question the 'spline' method, since it assumes information that may not be in your data. I would use 'linear', at least at first. Also, the linspace function might be more appropriate than the colon operator to create ‘wave2’.
  댓글 수: 6
JK
JK 2017년 5월 24일
it was successful. 980 was a problem. Thanks.
Star Strider
Star Strider 2017년 5월 24일
As always, my pleasure.

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

추가 답변 (0개)

카테고리

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