MATLAB: Interpolating function with monotonic decresing first derivative

interpolating

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.

Best Answer

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.