how can ı draw a square plane with random coordinates and put a random circle on it?

3 views (last 30 days)
I'm trying to create a square with random coordinates and put a random coordinated circle in it. My aim is circle cannot reach the outside of the square plane and it can take every other positions in the square. However, i can not do it with coordinates. Any suggestions to this problem?

Answers (1)

Image Analyst
Image Analyst on 28 Jan 2019
Once you see the FAQ, I'm sure a smart engineer like you will be able to figure it out:
It's easy.
But this requirement is nonsense: "i can not do it with coordinates". If you don't have coordinates, you can't draw a square or a circle, because you have no way of specifying where they are.

Categories

Find more on Creating and Concatenating Matrices in Help Center and File Exchange

Products


Release

R2017a

Community Treasure Hunt

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

Start Hunting!