フィルターのクリア

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

1 回表示 (過去 30 日間)
kurdistan mohsin
kurdistan mohsin 2022 年 3 月 31 日
編集済み: kurdistan mohsin 2022 年 3 月 31 日
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 Center および File Exchange2-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