Get from Ico-github-logo

Highlights from
inpolygons

  • inpolygons(x,y,xv,yv)
    INPOLYGONS Performs inpolygon on multiple polygons, holes possible
  • View all files

4.2

4.2 | 5 ratings Rate this file 27 Downloads (last 30 days) File Size: 20.6 KB File ID: #7187
image thumbnail

inpolygons

by

 

18 Mar 2005 (Updated )

Finds points inside multiple polygons, holes possible.

| Watch this File

File Information
Description

Test whether point(s) are in polygon(s) in Matlab

Required Products Mapping Toolbox
MATLAB release MATLAB 7.0.1 (R14SP1)
MATLAB Search Path
/
/kakearney-inpolygons-pkg-ea173dd/inpolygons
Tags for This File   Please login to tag files.
Please login to add a comment or rating.
Comments and Ratings (6)
23 May 2007 Kelly Kearney

Ben,

What version of Matlab are you running? The example runs fine on my computer, R2007b (Mapping Toolbox 2.4). But the line numbers you list don't agree with either of my copies of the code (the inpolygons line you note as 59 is line 69 in the code offered here, and the line you note in polysplit doesn't appear at all in my version of polysplit.m).

22 May 2007 Ben G

Got an error just running the example.

??? Error using ==> vertcat
All rows in the bracketed expression must have the same
number of columns.

Error in ==> polysplit at 35
if ~isnan( lat(length(lat)) ); lat = [lat; NaN]; end

Error in ==> inpolygons at 59
[xsplit, ysplit] = polysplit(xv, yv);

01 Mar 2007 Matt K.

Works perfectly and very quickly!
The Mapping Toolbox saves me again!

18 Jan 2006 Gennady Khokhorin

Thanks, nice work!

12 Jan 2006 Eleonora Vidolova  
15 Apr 2005 peng wenmin  
Updates
15 Dec 2014

Linked to GitHub repository

Contact us