Draw circle with given data.

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

 Risposta accettata

David Sanchez
David Sanchez il 6 Ago 2013
t=0:.1:2*pi;
radius = 3;
x=radius*cos(t);
y=radius*sin(t);
plot(x,y)
axis square

2 Commenti

Mrinal
Mrinal il 6 Ago 2013
Thnx David. But can i use the circumference formula to draw a circle.
Just find the radius from circumference using r=circumference/(2*pi); and proceed as said by David

Accedi per commentare.

Più risposte (0)

Categorie

Scopri di più su MATLAB in Centro assistenza e File Exchange

Prodotti

Community Treasure Hunt

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

Start Hunting!

Translated by