Cody

Solution 1975917

Submitted on 14 Oct 2019 by Khanh Le Quang
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 var2 = 0 S = 0.5000 S = 5.0000 S = int8 5 S1 = 1.0000 S1 = 10.0000 S1 = int8 10 z = 0 y = 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 var2 = 0 S = 0.5000 S = 5.0000 S = int8 5 S1 = 0.5000 S1 = 5.0000 S1 = int8 5 z = 1 y = 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 var2 = 0 S = 0.1338 S = 1.3379 S = int8 1 S1 = 0.1338 S1 = 1.3379 S1 = int8 1 z = 1 S1 = 0.3117 S1 = 3.1168 S1 = int8 3 z = 1 0 y = 1 0

Suggested Problems

More from this Author1