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
0 个评论
采纳的回答
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.
更多回答(0 个)
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!