how can i plot a circle using plot function?
조회 수: 15 (최근 30일)
이전 댓글 표시
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
댓글 수: 0
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!