Cody

# Problem 45196. Determine whether a given point is inside or outside a polygon

Solution 2033107

Submitted on 23 Nov 2019 by William
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
r = [44.28, 60.99]; y_correct = 0; assert(inOrOut(p,r) == y_correct);

2   Pass
r = [38.33, 57.67]; y_correct = 1; assert(inOrOut(p,r) == y_correct);

3   Pass
r = [0.98, 23.99]; y_correct = 1; assert(inOrOut(p,r) == y_correct);

4   Pass
r = [27.07, 95.94]; y_correct = 0; assert(inOrOut(p,r) == y_correct);

5   Pass
r = [ -7.45, 7.14]; y_correct = 0; assert(inOrOut(p,r) == y_correct);

6   Pass
r = [43.19, 2.87]; y_correct = 1; assert(inOrOut(p,r) == y_correct);

7   Pass
r = [19.39, 16.79]; y_correct = 1; assert(inOrOut(p,r) == y_correct);

8   Pass
r = [48.72, 71.27]; y_correct = 1; assert(inOrOut(p,r) == y_correct);

9   Pass
r = [-6.42, 68.20]; y_correct = 0; assert(inOrOut(p,r) == y_correct);

10   Pass
r = [20.03, 47.11]; y_correct = 1; assert(inOrOut(p,r) == y_correct);

### Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!