File Exchange

image thumbnail

collinear

version 1.0.0.0 (913 Bytes) by Zoltán Csáti
Determines if points are collinear

5 Downloads

Updated 29 Apr 2017

View License

The points are given as the rows of a matrix and the coordinates of the points as the columns of the matrix. This simple function then determines if the given points lie on a common line or not. Works for any dimension and for any number of points. Instead of using the determinant, the stable rank function is used in the code. The algorithm behind it can be found here:
https://en.wikipedia.org/wiki/Collinearity#Collinearity_of_points_whose_coordinates_are_given

Comments and Ratings (0)

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