# HG changeset patch # User Arun Giridhar # Date 1677879647 18000 # Node ID 53abb2f38acea39fc06dbd993c700b25db5a2c37 # Parent 3bdfda4f7c16363ee3bd74b8b4fe29c749710c4b# Parent 436f771403bccd0c87e790122d55d2938d9ccd59 maint: Merge stable to default diff -r 3bdfda4f7c16 -r 53abb2f38ace scripts/geometry/inpolygon.m --- a/scripts/geometry/inpolygon.m Fri Mar 03 14:04:18 2023 -0500 +++ b/scripts/geometry/inpolygon.m Fri Mar 03 16:40:47 2023 -0500 @@ -104,12 +104,12 @@ %! clf; %! plot (xv, yv); %! hold on; -%! plot (x(inside), y(inside), "@g"); -%! plot (x(! in), y(! in), "@m"); -%! plot (x(on), y(on), "@b"); +%! plot (x(inside), y(inside), "og"); +%! plot (x(! in), y(! in), "sm"); +%! plot (x(on), y(on), "^b"); %! hold off; -%! disp ("Green points are inside polygon, magenta are outside,"); -%! disp ("and blue are on boundary."); +%! disp ("Green circles are inside polygon, magenta squares are outside,"); +%! disp ("and blue triangles are on the boundary."); %!demo %! xv = [ 0.05840, 0.48375, 0.69356, 1.47478, 1.32158, ... @@ -129,12 +129,12 @@ %! clf; %! plot (xv, yv); %! hold on; -%! plot (x(inside), y(inside), "@g"); -%! plot (x(! in), y(! in), "@m"); -%! plot (x(on), y(on), "@b"); +%! plot (x(inside), y(inside), "og"); +%! plot (x(! in), y(! in), "sm"); +%! plot (x(on), y(on), "^b"); %! hold off; -%! disp ("Green points are inside polygon, magenta are outside,"); -%! disp ("and blue are on boundary."); +%! disp ("Green circles are inside polygon, magenta squares are outside,"); +%! disp ("and blue triangles are on the boundary."); %!test %! [in, on] = inpolygon ([1, 0, 2], [1, 0, 0], [-1, -1, 1, 1], [-1, 1, 1, -1]);