how can i plot a circle using plot function?

조회 수: 15 (최근 30일)
Punyajoy saha
Punyajoy saha 2016년 10월 5일
댓글: Pushpa Neupane 2023년 1월 31일
i
  댓글 수: 1
Pushpa Neupane
Pushpa Neupane 2023년 1월 31일
This code is showing some error. can you please upload the corrected one.

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

답변 (1개)

Massimo Zanetti
Massimo Zanetti 2016년 10월 5일
Look here
r = 2; %radius
xc = 4; %x center
yc = 3; %y center
theta = linspace(0,2*pi);
x = r*cos(theta) + xc;
y = r*sin(theta) + yc;
plot(x,y)
axis equal

카테고리

Help CenterFile Exchange에서 2-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