Cody

# Problem 42762. Is 3D point set Co-Planar?

Solution 850434

Submitted on 14 Mar 2016 by Jean-Marie Sainthillier
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
m=[0 0 1;1 1 0;1 0 1;2 0 0]; y_correct = false; assert(isequal(iscoplanar(m),y_correct))

ans = 1 2 4 1 3 2 1 4 3 2 3 4

2   Pass
m=[0 0 1;1 1 0;1 0 1;2 1 2]; y_correct = false; assert(isequal(iscoplanar(m),y_correct))

ans = 1 2 3 1 3 4 1 4 2 2 4 3

3   Pass
m=[0 0 1;1 1 0;1 0 1;0 1 0]; y_correct = true; assert(isequal(iscoplanar(m),y_correct))

4   Pass
m=[0 0 1;1 1 0;1 0 1;2 1 0]; y_correct = true; assert(isequal(iscoplanar(m),y_correct))

5   Pass
m=[0 0 1;1 1 0;1 0 1;2 0 1]; y_correct = true; assert(isequal(iscoplanar(m),y_correct))

6   Pass
m=[2 0 0;1 2 0;2 1 1;2 2 2]; y_correct = true; assert(isequal(iscoplanar(m),y_correct))

7   Pass
m=[2 0 0;1 2 0;2 1 1;2 1 2]; y_correct = false; assert(isequal(iscoplanar(m),y_correct))

ans = 1 2 3 1 3 4 1 4 2 2 4 3

8   Pass
m=[0 0 0;1 0 0;0 1 0;0 0 1]; y_correct = false; assert(isequal(iscoplanar(m),y_correct))

ans = 1 2 4 1 3 2 1 4 3 2 3 4

9   Pass
m=[0 0 0;1 0 0;0 1 0;1 1 1]; y_correct = false; assert(isequal(iscoplanar(m),y_correct))

ans = 1 2 4 1 3 2 1 4 3 2 3 4

10   Pass
m=[0 0 0;1 0 0;0 1 0;1 1 0]; y_correct = true; assert(isequal(iscoplanar(m),y_correct))

11   Pass
m=[0 0 0;0 0 1;1 1 1;1 1 0]; y_correct = true; assert(isequal(iscoplanar(m),y_correct)) %0 0 0 %1 0 0 %0 1 0 %0 0 1 %1 1 1

### Community Treasure Hunt

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

Start Hunting!