필터 지우기
필터 지우기

plot circules with with radius and random locations on 10x10 square area

조회 수: 1 (최근 30일)
I want to plot 10 circuls with radius=2 and other 10 circules with raduis between [1,4] and randlomly located on a square area of 10x10km

채택된 답변

KSSV
KSSV 2022년 3월 31일
You can plot circle using:
th = linspace(0,2*pi) ;
R = 1; % radius
C = [0 0] ; % center
x = C(1) + R*cos(th) ;
y = C(2)+R*sin(th) ;
plot(x,y)
Generate Radii and center using rand in your case and use the above lines.
  댓글 수: 1
kurdistan mohsin
kurdistan mohsin 2022년 3월 31일
편집: kurdistan mohsin 2022년 3월 31일
thank you , could you please complete the code regarding my question ?

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 2-D and 3-D Plots에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by