Skip to content

Instantly share code, notes, and snippets.

@ashaindlin
Created May 19, 2014 14:22
Show Gist options
  • Star 3 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ashaindlin/75e71b2825bb112fdbf9 to your computer and use it in GitHub Desktop.
Save ashaindlin/75e71b2825bb112fdbf9 to your computer and use it in GitHub Desktop.
Run polyxpoly without Mapping Toolbox installed
% Download intersections.m from http://www.mathworks.com/matlabcentral/fileexchange/11837-fast-and-robust-curve-intersections
% and put it in a folder on your MATLAB path. Put this function on your path too.
function [xi, yi] = polyxpoly(x1, y1, x2, y2)
[xi, yi] = intersections(x1, y1, x2, y2);
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment