Problem 45277. Orthogonal Circles

Solution 2930515

Submitted on 9 Sep 2020 by Alfonso Nieto-Castanon
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=[5,7,2]; q=[4,1,9]; y_correct = 0; assert(isequal(ortho_circle(p,q),y_correct))

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

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

4   Pass
p=[1,1,4]; q=[5,5,4]; y_correct = 1; assert(isequal(ortho_circle(p,q),y_correct))

Suggested Problems

More from this Author149

Community Treasure Hunt

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

Start Hunting!