Cody

Solution 1735475

Submitted on 25 Feb 2019 by danteliujie
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
Triangle = [0, 0; 1, 0; 1, 1]; Points = [0, 0.5] y_correct = 0; assert(isequal(your_fcn_name(Points,Triangle),y_correct))

Points = 0 0.5000 t = 0 -0.5000 1.0000 -0.5000 1.0000 0.5000 a = 0.5000 1.0000 -0.5000 ans = logical 0

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

Points = 0.8000 0.5000 t = -0.8000 -0.5000 0.2000 -0.5000 0.2000 0.5000 a = 0.5000 0.2000 0.3000 ans = logical 1

3   Pass
Triangle = [0.8147, 0.9134; 0.9058, 0.6324; 0.1270, 0.0975]; Points = [0.8, 0.7; 0.9, 0.4] y_correct = [1 0]; assert(isequal(your_fcn_name(Points,Triangle),y_correct))

Points = 0.8000 0.7000 0.9000 0.4000 t = 0.0147 0.2134 0.1058 -0.0676 -0.6730 -0.6025 a = -0.0236 -0.1092 -0.1348 ans = logical 1 t = -0.8853 -0.1866 -0.7942 -0.4676 -1.5730 -1.0025 a = 0.2658 0.0607 -0.5940 ans = 1×2 logical array 1 0

Suggested Problems

More from this Author1