Draw circle with given data.

조회 수: 9 (최근 30일)
Mrinal
Mrinal 2013년 8월 6일
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

채택된 답변

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

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Annotations에 대해 자세히 알아보기

제품

Community Treasure Hunt

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

Start Hunting!

Translated by