Randomly generated complex polygon with user input

2 visualizzazioni (ultimi 30 giorni)
I want to generate a randomly shaped complex polygon which has start point (0,0) and has vertices defined by user input.

Risposta accettata

Image Analyst
Image Analyst il 5 Apr 2013
How about using ginput() or impoly()?
  17 Commenti
Matthew
Matthew il 7 Apr 2013
YES! it works :) thank you. Now I just have to flip it in the x and y axis.
Image Analyst
Image Analyst il 7 Apr 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."

Accedi per commentare.

Più risposte (0)

Categorie

Scopri di più su Surfaces, Volumes, and Polygons in Help Center e File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by