Randomly generated complex polygon with user input

2 Ansichten (letzte 30 Tage)
Matthew
Matthew am 5 Apr. 2013
I want to generate a randomly shaped complex polygon which has start point (0,0) and has vertices defined by user input.

Akzeptierte Antwort

Image Analyst
Image Analyst am 5 Apr. 2013
How about using ginput() or impoly()?
  17 Kommentare
Matthew
Matthew am 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 am 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."

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Kategorien

Mehr zu Surfaces, Volumes, and Polygons finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by