Cody

Problem 43221. Interpolate scattered data.

Solution 2977591

Submitted on 22 Sep 2020 by ChrisR
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))

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))

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!