basin_identify.m

Identifies polygons of input set of points from input set of polygons, such as geographic coords.
141 Downloads
Updated 5 Nov 2014

View License

This code identifies the polygon (e.g. geographic basin) for each point in an input set of points from among an input set of polygons (e.g. geographic basins). Polygons cannot be overlapping. Designed for geographic data, though can work for any coordinate system. Example is included that makes a plot for geographic data.
This simplifies a common issue when working with geospatial data: the world or a region is broken up into sub-regions, and you want to then bin some set of datapoints into their respective sub-regions.

Cite As

Dan Chavas (2024). basin_identify.m (https://www.mathworks.com/matlabcentral/fileexchange/48360-basin_identify-m), MATLAB Central File Exchange. Retrieved .

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

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
Version Published Release Notes
1.2.0.0

Minor: added "sub-" to final word of description.

1.1.0.0

Added image, updated description to note that this works for any coordinate system, not necessarily geographic.

1.0.0.0