File Exchange

image thumbnail

iscoplanar.m

version 1.1.0.0 (1.67 KB) by Brett Shoelson
Tests input points for coplanarity in 3-space.

3 Downloads

Updated 10 Nov 2014

View License

Tests input points for coplanarity in N-dimensional space; optionally returns the rank of the input matrix.

SYNTAX:
COPL = iscoplanar(V)
(V is an M X N matrix of of vectors).
COPL = iscoplanar(V, TOLERANCE)
...Optionally, provide a scalar value of
TOLERANCE.
COPL = iscoplanar(X,Y,Z)
"Shortcut syntax" for testing coplanarity
in 3-space;
COPL = iscoplanar(X,Y,Z,TOLERANCE)
[COPL, RNK] = ...
Optionally, return the rank, RNK, of the
input matrix.

Comments and Ratings (1)

B Ham

Updates

1.1.0.0

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.

1.0.0.0

Fixes omission of absolute value in comparison with tolerance. Also, now uses determinants; new version is approximately 10x faster.

modifying description

MATLAB Release Compatibility
Created with R13
Compatible with any release
Platform Compatibility
Windows macOS Linux
Tags Add Tags
Acknowledgements

Inspired: geom3d