Cody

Solution 2155010

Submitted on 9 Mar 2020 by Chase Watson
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
circle = [0, 0, 1]; Points = [0, 0.5] y_correct = 1; assert(isequal(your_fcn_name(Points,circle),y_correct))

Points = 0 0.5000 x = 0 y = 0.5000 x0 = 0 y0 = 0 r = 1 f1 = 1 f2 = -1 a = logical 1 b = logical 1 y = logical 1

2   Pass
circle = [0, 0, 1]; Points = [0, 2] y_correct = 0; assert(isequal(your_fcn_name(Points,circle),y_correct))

Points = 0 2 x = 0 y = 2 x0 = 0 y0 = 0 r = 1 f1 = 1 f2 = -1 a = logical 0 b = logical 1 y = logical 0

3   Pass
circle = [1, 1, 1]; Points = [0, 1; 0, 0] y_correct = [1; 0]; assert(isequal(your_fcn_name(Points,circle),y_correct))

Points = 0 1 0 0 x = 0 0 y = 1 0 x0 = 1 y0 = 1 r = 1 f1 = 1 1 f2 = 1 1 a = 2×1 logical array 1 1 b = 2×1 logical array 1 0 y = 2×1 logical array 1 0

Suggested Problems

More from this Author1