Info

이 질문은 마감되었습니다. 편집하거나 답변을 올리려면 질문을 다시 여십시오.

What kind interpolation function need be used?

조회 수: 1 (최근 30일)
R7 DR
R7 DR 2015년 2월 20일
마감: MATLAB Answer Bot 2021년 8월 20일
HI
What kind of interpolation function can be used for the data looks like in the graph.
I am using the interp1 function, some one said that I cant use it becuase the data is not monotonic.
Is there any function to deal with these kind of data?
my code is
A=xlsread('interpolation.xlsx','sheet1','A:A')
B=xlsread('interpolation.xlsx','sheet1','B:B')
x=0.2:0.1:0.5
D=interp1(B,A,x)
Thanks in advance..
  댓글 수: 3
John D'Errico
John D'Errico 2015년 2월 21일
편집: John D'Errico 2015년 2월 21일
What does it mean to interpolate a function that has multiple values for a given value of x?
While there are ways one can interpolate such non-monotonic curves, it does not appear that you know what you want to do here. In fact, I've written such a tool. But first, we need you to understand what you are doing, or we need to understand what it is you want.
One possibility for example, is to just smooth the curve you have.
R7 DR
R7 DR 2015년 2월 25일
@Chris and John Thanks for the reply
I have a set of Xand Y values and I need to find the X value at known value of Y. For example, I want to find the value of X at Y=0.2,0.36, 0.42.....etc. As,the data is not in a good shape, some times I am getting negative values while doing the interpolation.
Do we have any function for curve smoothing? Does the smoothing of the curve changes the data??

답변 (0개)

이 질문은 마감되었습니다.

태그

Community Treasure Hunt

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

Start Hunting!

Translated by