Cody

Problem 43221. Interpolate scattered data.

Solution 3389443

Submitted on 26 Oct 2020 by Ben Vien
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.

Test Suite

Test Status Code Input and Output
1   Pass
x=[1 3 4]; y=[1 2 1]; c=[2 3 5]; y_correct = griddata(x,y,c,2.6,1.4); assert(isequal(datinter(x,y,c),y_correct))

z = 3.2000

2   Pass
x=[1 2 4]; y=[1 2 1.2]; c=[2 6 9]; y_correct = griddata(x,y,c,2.6,1.4); assert(isequal(datinter(x,y,c),y_correct))

z = 6.2571

Suggested Problems

More from this Author27

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!