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

조회 수: 3 (최근 30일)
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?

답변 (1개)

Image Analyst
Image Analyst 2019년 1월 28일
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.

카테고리

Help CenterFile Exchange에서 Creating and Concatenating Matrices에 대해 자세히 알아보기

제품


릴리스

R2017a

Community Treasure Hunt

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

Start Hunting!

Translated by