data = [1 1 7
2 3 9
3 5 8
4 6 4] ;
x = data(:,1) ;
y = data(:,2) ;
z = data(:,3) ;
F = scatteredInterpolant(x,y,z) ;
xi = [1 1 1 2 2 ];
yi = [3 5 6 1 5] ;
F(xi,yi)
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!