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

3 visualizzazioni (ultimi 30 giorni)
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?

Risposte (1)

Image Analyst
Image Analyst il 28 Gen 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.

Categorie

Scopri di più su Creating and Concatenating Matrices in Help Center e File Exchange

Prodotti


Release

R2017a

Community Treasure Hunt

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

Start Hunting!

Translated by