how can i plot a circle using plot function?
이전 댓글 표시
i
댓글 수: 1
Pushpa Neupane
2023년 1월 31일
This code is showing some error. can you please upload the corrected one.
답변 (1개)
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
카테고리
도움말 센터 및 File 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!