2D Interpolation of Scattered Data
19 views (last 30 days)
Show older comments
I have attached the plot that I'd like to interpolate. The red dots are the points that I have imported in to matlab with their respective x (Pressure) and y (temperature at 6000 Pressure) values. What function would you recommend I use to interpolate this? Please be mindful that some curves increase in value before decreasing. Thank you!

2 Comments
John D'Errico
on 3 Jul 2018
Do you have some parameter at each of the red dots, and now you wish to produce a gridded surface that is effectively z(pressure,temperature)?
Or are you looking to be able to read off a point that intersects one of those curves? So perhaps at a given temperature, you want to know pressure along one of those curves?
Image Analyst
on 4 Jul 2018
Edited: Image Analyst
on 4 Jul 2018
Do you have some theoretical formula for these enthalpy curves? I would think so. Make it easy for us to help you by providing us with the coordinates of the red dots, and the theoretical formula.
and this:
Answers (1)
Jim Riggs
on 3 Jul 2018
I suggest you try "interp2" using the "cubic" method. (you may want to try the "spline" method also). These should be better than simple linear interpolation.
2 Comments
John D'Errico
on 3 Jul 2018
You cannot use interp2 on scattered data. The red dots are effectively scattered.
Jim Riggs
on 3 Jul 2018
I did not assume that the data was scattered. I see eight curves with red dots at evenly spaced pressure values. If the eight curves represent a third, (unspecified) parameter which is evenly spaced, (from curve 1 to 8), then the temperature data is on a uniform grid of pressure x (unspecified parameter).
See Also
Categories
Find more on Interpolation in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!