Clear Filters
Clear Filters

Randomly generated complex polygon with user input

1 view (last 30 days)
I want to generate a randomly shaped complex polygon which has start point (0,0) and has vertices defined by user input.

Accepted Answer

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

Sign in to comment.

More Answers (0)

Categories

Find more on Contour Plots in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!