Randomly generated complex polygon with user input

2 visualizaciones (últimos 30 días)
Matthew
Matthew el 5 de Abr. de 2013
I want to generate a randomly shaped complex polygon which has start point (0,0) and has vertices defined by user input.

Respuesta aceptada

Image Analyst
Image Analyst el 5 de Abr. de 2013
How about using ginput() or impoly()?
  17 comentarios
Matthew
Matthew el 7 de Abr. de 2013
YES! it works :) thank you. Now I just have to flip it in the x and y axis.
Image Analyst
Image Analyst el 7 de Abr. de 2013
There is an 'xdir' property where you can reverse the direction. I think it's something like
set(gca, 'xdir', 'reverse');
or something like that. If this is solved, then mark the answer as "Accepted."

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Surfaces, Volumes, and Polygons en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by