2D Interpolation of Scattered Data
4 次查看(过去 30 天)
显示 更早的评论
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 个评论
John D'Errico
2018-7-3
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
2018-7-4
编辑:Image Analyst
2018-7-4
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:
回答(1 个)
Jim Riggs
2018-7-3
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 个评论
John D'Errico
2018-7-3
You cannot use interp2 on scattered data. The red dots are effectively scattered.
Jim Riggs
2018-7-3
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).
另请参阅
产品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!