Cody

# Problem 45278. Orthogonal lines

Solution 2153650

Submitted on 8 Mar 2020
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   Fail
p=[7,3;0 13]; q=[2,0;-1,0]; y_correct = 0; assert(isequal(ortho_line(p,q),y_correct))

Error in solution: Line: 2 Column: 35 Invalid expression. When calling a function or indexing a variable, use parentheses. Otherwise, check for mismatched delimiters.

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

Error in solution: Line: 2 Column: 35 Invalid expression. When calling a function or indexing a variable, use parentheses. Otherwise, check for mismatched delimiters.

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

Error in solution: Line: 2 Column: 35 Invalid expression. When calling a function or indexing a variable, use parentheses. Otherwise, check for mismatched delimiters.

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

Error in solution: Line: 2 Column: 35 Invalid expression. When calling a function or indexing a variable, use parentheses. Otherwise, check for mismatched delimiters.

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

Error in solution: Line: 2 Column: 35 Invalid expression. When calling a function or indexing a variable, use parentheses. Otherwise, check for mismatched delimiters.