This Challenge is to determine if four 3D integer points are co-planar. Given a 4x3 matrix representing four x,y,z integer points, output True if the set is co-planar and False otherwise.
Examples
m = [0 0 0;1 0 0;0 1 0;0 0 1] Output: False, this point set is non-coplanar.
m = [0 0 0;0 0 1;1 1 0;1 1 1] Output: True, this point set is co-planar.
Reference: The March 2016 Al Zimmermann Non-Coplanar contest is to maximize the number of points in an NxNxN cube with no 4 points in a common plane. Future challenge will be to find N=2 and N=3 solutions.
Theory: Plane is defined as Ax+By+cZ=D. [A,B,C] can be found using cross of 3 points. D can be found by substitution using any of these 3 points. Co-Planarity of the fourth point is True if Ax4+By4+Cz4==D
Solution Stats
Problem Comments
Solution Comments
Show commentsProblem Recent Solvers28
Suggested Problems
-
2252 Solvers
-
It dseon't mettar waht oedrr the lrettes in a wrod are.
2161 Solvers
-
the fly, the train, the second train, and their Zeno's paradox
77 Solvers
-
Sum the entries of each column of a matrix which satisfy a logical condition.
176 Solvers
-
The Answer to Life, the Universe, and Everything
587 Solvers
More from this Author306
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!