Cody

Solution 397883

Submitted on 6 Feb 2014 by Julien
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))

b = 60 30 30 60 60 120 ans = []

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

b = 80 40 60 60 60 60 ans = []

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

b = 90 30 60 60 60 60 ans = []

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

b = 65 30 25 60 65 115 ans = []

Suggested Problems

More from this Author1