Cody

Solution 1658056

Submitted on 24 Oct 2018 by goc3
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))

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

ans = 6.2571

Suggested Problems

More from this Author27