Cody

Solution 1819095

Submitted on 17 May 2019
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   Fail
xy = [3,4; 0,0; 0,1; 1,1]; z_correct = 7; assert(isequal(walked(xy),z_correct))

Undefined function or variable 'x'. Error in walked (line 2) z = sqrt(x^2+y^2) Error in Test1 (line 3) assert(isequal(walked(xy),z_correct))

2   Fail
xy = [3,4; 0,0]; z_correct = 5; assert(isequal(walked(xy),z_correct))

Undefined function or variable 'x'. Error in walked (line 2) z = sqrt(x^2+y^2) Error in Test2 (line 3) assert(isequal(walked(xy),z_correct))

3   Fail
xy = [0,0; 5,12; 0,12]; z_correct = 18; assert(isequal(walked(xy),z_correct))

Undefined function or variable 'x'. Error in walked (line 2) z = sqrt(x^2+y^2) Error in Test3 (line 3) assert(isequal(walked(xy),z_correct))