Increasing number of data points by linear interpolation method
30 views (last 30 days)
John D'Errico on 12 Aug 2022
Edited: John D'Errico on 12 Aug 2022
The problem is, as voiced by others, is it depends on why you are doing this. Certainly you can use interpolation tools to perform interpolation.
What I see is a rather difficult to interpret set of points. Are these to be seen as a polygon, perhaps a reflection of some hysteresis phenomenon? Or is it just that the points are in no specific order, and we have what appears to be a rather noisy relationship?
Importantly though, you should NEVER use interpolation to create more data from sparse data. What you get will be a curve that depends more on the characteristics of the interpolant you use, then it does contain any information content. You gain no information content by interpolation.
If your goal is to merely create a pretty plot, then go ahead. Use an appropriate interpolation scheme. Here, that would depend on what the data means. Note that if you had problems in trying to use interp1, my guess is you wanted the result to follow the polygonal path. Interp1 does NOT do that kind of interpolation. For that, you will need to use tools like cscvn, or my own interparc, as found on the file exchange.
But again, you need to understand why it is you want to do that interpolation, and remember that you gain no signal from doing so.