Info
この質問は閉じられています。 編集または回答するには再度開いてください。
What kind interpolation function need be used?
2 ビュー (過去 30 日間)
古いコメントを表示
HI
What kind of interpolation function can be used for the data looks like in the graph.
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/147228/image.png)
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
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.
回答 (0 件)
この質問は閉じられています。
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!