Randomly generated complex polygon with user input

1 次查看(过去 30 天)
I want to generate a randomly shaped complex polygon which has start point (0,0) and has vertices defined by user input.

采纳的回答

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

请先登录,再进行评论。

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Contour Plots 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by