Cody

Solution 1499581

Submitted on 21 Apr 2018 by bainhome
  • Size: 16
  • This is the leading solution.
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))