I have a dataset, shown in the figure, to which I would like to plot a smooth curve like in Excel. I tried using a smoothing spline but that doesn't hold up when I plot the data on a log-y axis. Is there a fit that would better suit my needs?
I'm having the same issue. I would like to smooth my plot that's on a log scale using semilogx. I have tried both smoothingspline and interpl and neither hold. Please provide examples of code using semilogx because the examples from matlab are using linear aplots nd those don't transfer :)
I hope you have already tried changing the different parameters available for smoothening the curve using "smoothing spline" function. You can refer to thislink for more information.
Other than “smoothing spline” these methods can be used for smoothing and fitting the curve to data:
Lowess Smoothing—Create a smooth surface using locally weighted linear regression to smooth data.
Filtering and Smoothing Data—Using smooth functionusing methods for moving average,Savitzky-Golay filters, and local regression with and without weights and robustness