i am working code to create the hexagon with a circle in it and to create the random points in hexagon and circle separately.
Show older comments
i am working on a code to create the hexagon with a circle in it and to create the random points in hexagon and circle separately. please help me how can i create random points in hexagon and circle separately.and they should remain in their boundaries. below is the graph of my code uptil now.
Accepted Answer
More Answers (1)
Image Analyst
on 21 Jan 2016
1 vote
See my attached demos. Feel free to adapt.
The shape demo has code for drawing polygons such as a hexagon, pentagon, etc. The circle one shows random points in a circle.
Categories
Find more on Mathematics 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!