interpolate on a sparse - incomplete - non-square grid
3 次查看(过去 30 天)
显示 更早的评论
I have some data in the form of a vector (xi,yi,Fi,Gi) where F and G are two-dimensional functions of x and y.
However, the {xi,yi} set do NOT form a grid: ie for some values of x there are more y values where I know F and G e.g.
x=[2,2,2,3,3,4,4,4,4,5,5]';
y=[4,5,6,5,6,7,8,9,10,8,10]';
I want to perform some calculations involving x, F and G. Is there a way to perform interpolation to get for example f_int the interpolation of f on a subset of the (x,y) parameter space,_ e.g._ on
x_int=3:.1:4;
y_int=5:.1:10;
However it seems that interp2 would not work because the (xi,yi) are not monotonously ordered...
0 个评论
回答(1 个)
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!