Effacer les filtres
Effacer les filtres

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

1 vue (au cours des 30 derniers jours)
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

Réponse acceptée

KSSV
KSSV le 31 Mar 2022
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 commentaire
kurdistan mohsin
kurdistan mohsin le 31 Mar 2022
Modifié(e) : kurdistan mohsin le 31 Mar 2022
thank you , could you please complete the code regarding my question ?

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

En savoir plus sur 2-D and 3-D Plots dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by