File Exchange

image thumbnail


version (23.2 KB) by Are Mjaavatten
Finds the position within or on a boundary that is farthest from any member of a set of points.


Updated 20 Dec 2018

View License

Given a set of points and a boundary, this function finds the position within or on the boundary that is most distant from the nearest point the set.
Some possible applications:
- Find the point farthest from a city, airport, radio mast, ....
- Find the point on an island farthest from the sea
Empirically, the order is closer to O(n) than to O(n log(n)).

Cite As

Are Mjaavatten (2020). remotest(points,boundary) (, MATLAB Central File Exchange. Retrieved .

Comments and Ratings (5)

The speedup factor varies with the size of the problem. For 10 points it is about 2. For 1 000 000 points it is about 25.


Added option for finding interior points only, excluding points on the boundary.

Six times faster than version 2.0

New algorithm: 40 to 70 % faster. Algorithm philosophy included as comment.

MATLAB Release Compatibility
Created with R2014b
Compatible with any release
Platform Compatibility
Windows macOS Linux