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!

Answers (1)

Star Strider
Star Strider on 9 Aug 2020
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.

Categories

Asked:

on 9 Aug 2020

Edited:

on 9 Aug 2020

Community Treasure Hunt

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

Start Hunting!