Tests input points for coplanarity in N-dimensional space; optionally returns the rank of the input matrix.
COPL = iscoplanar(V)
(V is an M X N matrix of of vectors).
COPL = iscoplanar(V, TOLERANCE)
...Optionally, provide a scalar value of
COPL = iscoplanar(X,Y,Z)
"Shortcut syntax" for testing coplanarity
COPL = iscoplanar(X,Y,Z,TOLERANCE)
[COPL, RNK] = ...
Optionally, return the rank, RNK, of the
Brett Shoelson (2020). iscoplanar.m (https://www.mathworks.com/matlabcentral/fileexchange/46-iscoplanar-m), MATLAB Central File Exchange. Retrieved .
This is a complete (much-improved) rewrite of my previous |iscoplanar| function. This version considers the rank of the input matrix relative to the dimensionality of its space.
Fixes omission of absolute value in comparison with tolerance. Also, now uses determinants; new version is approximately 10x faster.