Cody

Solution 2120512

Submitted on 6 Feb 2020 by Tim
  • Size: 17
  • This is the leading solution.
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
p=[7,3;0 13]; q=[2,0;-1,0]; y_correct = 0; assert(isequal(ortho_line(p,q),y_correct))

2   Pass
p=[0,3;0 13]; q=[2,0;-1,0]; y_correct = 1; assert(isequal(ortho_line(p,q),y_correct))

3   Pass
p=[0,4;0 -9]; q=[2,3;-1,0]; y_correct = 0; assert(isequal(ortho_line(p,q),y_correct))

4   Pass
p=[0,4;0 -9]; q=[2,0;-1,0]; y_correct = 1; assert(isequal(ortho_line(p,q),y_correct))

5   Pass
p=[2,2;5,5]; q=[0,-2;-2,0]; y_correct = 1; assert(isequal(ortho_line(p,q),y_correct))

Suggested Problems

More from this Author122