Effacer les filtres
Effacer les filtres

Draw circle with given data.

2 vues (au cours des 30 derniers jours)
Mrinal
Mrinal le 6 Août 2013
I am new to Matlab and want to draw a circle with radius r and circumference circ = 2*pi*r*r . Is it possible. Thanking you.
Regards, Mrinal

Réponse acceptée

David Sanchez
David Sanchez le 6 Août 2013
t=0:.1:2*pi;
radius = 3;
x=radius*cos(t);
y=radius*sin(t);
plot(x,y)
axis square
  2 commentaires
Mrinal
Mrinal le 6 Août 2013
Thnx David. But can i use the circumference formula to draw a circle.
Sathish Kumar
Sathish Kumar le 6 Août 2013
Just find the radius from circumference using r=circumference/(2*pi); and proceed as said by David

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

Produits

Community Treasure Hunt

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

Start Hunting!

Translated by