Interpolate, fit, and space data

6 次查看(过去 30 天)
noMathWiz
noMathWiz 2020-8-9
编辑: noMathWiz 2020-8-9
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
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.

类别

Help CenterFile Exchange 中查找有关 Interpolation 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by