Interpolating function with monotonic decresing first derivative

Hello, everyone.
I want to find an interpolating function with monotonic decreasing first derivative as shown in the figure.
The black points are the data and the red line is the interpolating function I want to get.
The only condition of interpolating function is: dY/dX should monotonic decreasing .
Is their any interpolating function and solve this problem in MATLAB??
Thanks for any helpful ideas.

9 件のコメント

Jan
Jan 2018 年 10 月 17 日
There is an infinite number of interpolating functions matching these points and the condition. Is dy/dx < 0 wanted globally or only in the interpolated interval?
Bruno Luong
Bruno Luong 2018 年 10 月 17 日
編集済み: Bruno Luong 2018 年 10 月 17 日
"dY/dX should monotonic decreasing "
Your cannot with this data dY/dx is increases in some discrete points so you can never get dY/dx decreases.
Now if you mistake "dY/dx decrease" for "Y decreases" of "dY/dx < 0", that is possible.
Signed by Mr pedantic
Jan
Jan 2018 年 10 月 17 日
編集済み: Jan 2018 年 10 月 17 日
I missed you, Mr. exact Bruno. Maybe "decreasing derivative" is a weak formulation only, maybe it is the actual problem.
Dimitris Kalogiros
Dimitris Kalogiros 2018 年 10 月 17 日
編集済み: Dimitris Kalogiros 2018 年 10 月 17 日
I think , that "red" function of the given graph, has an increasing derivative. I wonder whether the restriction is: dy/dx should be negative
Kim Jeong Min
Kim Jeong Min 2018 年 10 月 17 日
I am sorry to cause confusion.
Yes, dY/dX itself should increasing and dY/dX is a negative value globally.
Torsten
Torsten 2018 年 10 月 17 日
Maybe Y = a*exp(-b*X) with a,b to be determined is a good choice for the function.
Bruno Luong
Bruno Luong 2018 年 10 月 17 日
For fitting or interpolating?
Torsten
Torsten 2018 年 10 月 17 日
ok, fitting ...
Kim Jeong Min
Kim Jeong Min 2018 年 10 月 17 日
編集済み: Kim Jeong Min 2018 年 10 月 17 日
The purpose of this project is making discontinuous data become continuous. So, I think both options are acceptable.

サインインしてコメントする。

 採用された回答

Bruno Luong
Bruno Luong 2018 年 10 月 17 日

0 投票

You can use PCHIP, either in the toolbox or as option of INTERP1 for shape-preserving interpolation.
For fitting you might take a look at my BSFK tool or John d'Errico SLM.

1 件のコメント

Kim Jeong Min
Kim Jeong Min 2018 年 10 月 17 日
Thank you for your solution. I realized the interpolating method must pass the data which is not I want. I think I have to try fitting procedure through your opinion.

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

ヘルプ センター および File Exchange で Interpolation of 2-D Selections in 3-D Grids についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by