Cody

Solution 1983213

Submitted on 20 Oct 2019 at 9:03 by Nikolaos Nikolaou
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 = [30 90 120 150 210 270]; y_correct = [60 30 30 60 60 120]; assert(isequal(distance_circle(x),y_correct))

x = 30 90 120 150 210 270 390 y = 60 30 30 60 60 120

2   Pass
x = [140 220 260 320 380 440]; y_correct = [80 40 60 60 60 60]; assert(isequal(distance_circle(x),y_correct))

x = 140 220 260 320 380 440 500 y = 80 40 60 60 60 60

3   Pass
x = [0 90 120 180 240 300]; y_correct = [90 30 60 60 60 60]; assert(isequal(distance_circle(x),y_correct))

x = 0 90 120 180 240 300 360 y = 90 30 60 60 60 60

4   Pass
x = [330 395 425 450 510 575]; y_correct = [65 30 25 60 65 115]; assert(isequal(distance_circle(x),y_correct))

x = 330 395 425 450 510 575 690 y = 65 30 25 60 65 115

Suggested Problems

More from this Author1