Interpolate, fit, and space data

Hi folks,
I have a data set whose x-vales are unevenly spaced (see the red dots. each red dot represents a data point).
I would like to make my data evenly spaced along the x-axis with the corresponding y values based on a fit (or interpolation) of the original data.
I have no idea how to accomplish this so any help is appreciated!

回答(1 个)

Star Strider
Star Strider 2020-8-9

0 个投票

I have no idea exactly what you want to do, or what your data actually are.
For the ‘x’ data, I would probably use the linspace function, and for the ‘y’ data, interp1.

类别

在 帮助中心 和 File Exchange 中查找有关 Interpolation 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by